alexpeshkoff
153de0f271
Language independent API
2014-09-29 11:03:47 +00:00
alexpeshkoff
d513daa574
Divide IStatus information into 3 parts: errors, warnings and completion code.
...
Errors and warnings are processed in IStatus independently. Completion code
is moved away from IStatus and returned directly by appropriate functions.
Replaced isSuccess() with more generic function getStatus(), which sets
appropriate bits in returned value when errors/warnings are present.
Also use same style when returning bytes' array and it's length in different
interfaces.
2014-08-27 09:24:30 +00:00
dimitr
36af3d8cb2
Cleanup and small refactoring to avoid redundancy.
2014-08-15 14:19:02 +00:00
alexpeshkoff
4ca6e669fe
1. Fixed CORE-3786: Firebird 2.5.1 Hangs on MacOSX 10.7 (Lion) on DB create after reboot.
...
2. Cleanup: avoid functional style in stuff exception.
2012-11-01 11:40:18 +00:00
alexpeshkoff
b91c68bb30
Cross-build support + android port: work in progress, currently can build fbclient for android
2012-06-22 11:39:24 +00:00
alexpeshkoff
4e795f4047
Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports.
2012-03-01 08:55:43 +00:00
alexpeshkoff
5c88e478f6
Use better names for a number of objects according to Vlad's suggestion
2011-04-07 17:16:00 +00:00
alexpeshkoff
0ab6c4abf7
Avoid throwing C++ exceptions from authentication plugins
2010-10-28 08:02:42 +00:00
asfernandes
91384eb587
Misc
2010-10-12 17:40:27 +00:00
alexpeshkoff
2dc25a44bb
OSRI and new posix build
2010-10-12 08:02:57 +00:00
alexpeshkoff
34d79c9c3f
Fixed CORE-2728: Access Violation when trying to add an user that already exists
2009-11-30 12:10:47 +00:00
alexpeshkoff
404f2b7c0b
Avoid suspicious ctor according to Claudio's request
2009-09-01 10:36:30 +00:00
alexpeshkoff
9629eafccd
Use per-thread circular strings buffers instead common and per-attachment combination
2009-09-01 09:20:24 +00:00
asfernandes
8c0b380fac
Misc
2009-08-27 02:19:36 +00:00
alexpeshkoff
9a325bd8b5
Avoid need in StringsBuffer when processing serious system errors
2009-08-26 13:08:54 +00:00
asfernandes
28a7e4c037
Misc
2009-07-24 02:15:07 +00:00
asfernandes
6377356940
Misc
2009-07-23 00:56:28 +00:00
paulbeach
00af06a82f
And the long march to making Firebird build and run on MacOSX continues
2009-07-21 13:59:45 +00:00
asfernandes
cb40c9f8ba
Apply Alex/Bill/Jerry/me patch re. portability in redefinition of operator new
2009-06-13 16:36:10 +00:00
asfernandes
ff5f8745fb
Remove trailing spaces (.h files)
2008-12-05 00:56:15 +00:00
asfernandes
a5ff7ca091
Misc
2008-12-01 01:26:27 +00:00
hvlad
c88151c080
Split class system_call_failed into two exception classes : system_error and system_call_failed. system_error is an wrapper for OS errors and system_call_failed inherits from system_error and calls abort() when exception raised. system_error intended for the cases where failure of OS call is expected and can be handled.
2008-11-27 20:16:46 +00:00
alexpeshkoff
8d353aceb9
Do not reallocate string into circular buffer if it is already in it
2008-09-05 11:33:52 +00:00
asfernandes
cc5b689eda
Misc
2008-08-29 02:18:50 +00:00
alexpeshkoff
13a15d4bfe
1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
...
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
alexpeshkoff
5ac5869661
CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come.
2008-07-03 12:02:54 +00:00
robocop
0d1985d1f0
Misc, explicit constructors, extra commas in enumerations, constness, etc.
2008-02-02 16:57:15 +00:00
asfernandes
aea2bcb354
Misc
2008-01-23 19:03:16 +00:00
alexpeshkoff
39896cb955
Fixed CORE-1671: atexit() calls in client libraries cause segfaults
...
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory
To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.
Also some related cleanup.
2008-01-23 15:52:40 +00:00
alexpeshkoff
fc89b23b7f
added public method to make strings in vector permanent to StringsBuffer
2007-09-26 17:50:31 +00:00
alexpeshkoff
2aafa91873
avoid reinterpret_cast in exception's handler
2006-05-22 11:45:19 +00:00
alexpeshkoff
b056a118b5
1. Avoid use of STL
...
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
alexpeshkoff
baa8ede6a8
better support for OS error code in system_call_failed
2006-03-15 17:29:11 +00:00
robocop
7939c5f3d8
Avoid a crash.
2006-01-08 01:11:06 +00:00
alexpeshkoff
64ac449789
avoid vararg constructors in status_exception
2006-01-07 16:50:13 +00:00
robocop
2b2e2d5dd0
Const correctness and the like.
2005-12-23 01:42:40 +00:00
robocop
0253028a5d
This alternative constructor shouldn't be public, but MSVC6 doesn't obey the private clause if there's another constructor made public. Maybe no compiler does.
2005-12-22 06:22:23 +00:00
robocop
244621058d
Change the license with Mike's permission.
2004-12-12 01:55:57 +00:00
robocop
950216de4e
Misc.
2004-12-08 05:58:41 +00:00
skidder
dde4d7b557
Commit change adding method used by ClumpletReader/ClumpletWriter
2004-11-11 21:46:25 +00:00
skidder
e075d9f71a
Add comment for a couple ugly aspects of exception handling (they need to be fixed, eventually)
2004-10-08 15:05:44 +00:00
robocop
373b5e27de
Fixed a bug in fatal_exception's constructor that causes fill_status to write garbage in the status vector.
...
Overload what() for the same class. It helps gpre to quit on failures (gpre changes still not posted).
2004-10-07 09:27:34 +00:00
skidder
e9f8ef102e
Fixes needed to make GCC 3.4 happy
2004-05-03 04:25:06 +00:00
skidder
c64f31b712
Fix some warnings from GCC/Linux build. Some of them were subtle errors
2004-03-12 07:00:52 +00:00
alexpeshkoff
d261af4111
don't start variables names with underscore - _syscall caused problems with MSVC6
2004-03-01 16:50:26 +00:00
skidder
dc7aab8f9c
Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed
2004-03-01 03:35:23 +00:00
robocop
16cbc204df
Cleanup
2003-12-31 05:36:12 +00:00
aafemt
b3436b5cd7
STATUS -> ISC_STATUS
2003-04-10 06:32:58 +00:00
alexpeshkoff
81b3d5593e
Added 2 new exceptions
...
Cleanup
2002-11-11 18:06:01 +00:00
bellardo
d45ff6c07b
Accept NULL memory deletes and move exception raise code to its own file.
2002-04-04 05:38:26 +00:00