8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 00:43:02 +01:00
Commit Graph

326 Commits

Author SHA1 Message Date
alexpeshkoff
d28b38c01e explicit constructor for lock guard 2004-06-08 06:51:13 +00:00
robocop
1426fd894b We use DIRECTORY_FILENAME_H for protecting headers 2004-05-29 04:34:31 +00:00
alexpeshkoff
9a34ce553c make bool (isEmpty/hasData) checks for string and stack safe 2004-05-27 16:26:52 +00:00
alexpeshkoff
2fd7f7b01c text indent fix 2004-05-27 12:01:14 +00:00
alexpeshkoff
dd4280938f use windows upper/lower-case conversion functions for win32 build 2004-05-27 09:24:21 +00:00
alexpeshkoff
99dd6b8a03 optimize string performance with the price of 4 additional bytes per string 2004-05-26 16:10:56 +00:00
kkuznetsov
44242a72ce Fixed a couple of compile errors on Solaris x86 2004-05-24 11:23:41 +00:00
brodsom
dd5d8aba0a -Replace stuff macros with either common stuff inlines or class inline functions 2004-05-24 11:03:54 +00:00
robocop
1953841ae4 Without being able to compile it, I fixed the new SOLARIS code in semaphore.h that:
- didn't have any rational indentation but random positions and a combination of blanks and tabs
- instead of testing errno, assigned a value to it (= instead of ==)
- has some strange emoty if(); only put a comment here.
People shouldn't post code to CVS without at least reviewing visually what they wrote.
2004-05-23 06:07:46 +00:00
kkuznetsov
e2f56c62e3 Added semaphore implementation used conditional varyable and mutex, becouse of no sem_timedwait existans.
Ugly, errorable and untested.
2004-05-21 14:14:34 +00:00
robocop
441817bd82 1.- Misc changes
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +00:00
skidder
277788de7a NetBSD port from James K. Lowden 2004-05-20 23:05:02 +00:00
brodsom
7d532508ea Macro cleaning 2004-05-17 15:07:49 +00:00
kkuznetsov
234fdb0e43 Add check for caddr_t to fix compile error on Solaris munmap,
some more warnings to prefix solx86gcc, comment historycal pragmas
2004-05-13 14:05:00 +00:00
brodsom
8699aec9c9 -Avoid shadow warning 2004-05-12 19:23:17 +00:00
robocop
802f244ec1 Misc changes 2004-05-09 05:48:33 +00:00
alexpeshkoff
52928b2148 fixed bug in split() 2004-05-06 08:42:56 +00:00
skidder
21e44d3af3 Close a couple potential tins of worms spotted by Claudio in my previous commits 2004-05-03 17:05:56 +00:00
brodsom
1b92c3fb08 -Fix MinGW build 2004-05-03 12:20:01 +00:00
skidder
e9f8ef102e Fixes needed to make GCC 3.4 happy 2004-05-03 04:25:06 +00:00
skidder
8a4cb13eb2 Care about quirks of Windows platform 2004-05-03 01:53:24 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00
brodsom
e0854daa99 Removing ib_stdio.h 2004-04-28 22:00:03 +00:00
skidder
9d15b2e7ee Fix GCC build 2004-04-25 03:29:20 +00:00
hvlad
2afe197918 Added Stack::iterator::hasMore method. Replaced getCount() and notEmpty() with hasMore() when it's possible 2004-04-23 08:02:52 +00:00
alexpeshkoff
7b27fa55be fixed number problems after lls to Stack conversion 2004-04-21 14:14:36 +00:00
alexpeshkoff
176041c63e applied fixes, mentioned by Claudio 2004-04-19 13:40:30 +00:00
alexpeshkoff
045e9dc8ec 1. removed any mentions of blk_pool() from engine (and method itself)
2. replaced 'struct lls' with 'template Stack'
2004-04-18 14:22:27 +00:00
skidder
6c9fbf8d85 Fix MSVC build 2004-04-18 03:34:22 +00:00
skidder
abdbec6f84 Switch to Firebird container templates for request resource tracking. This significantly reduces CPU time any memory consumption for databases with complex metadata 2004-04-18 02:50:38 +00:00
alexpeshkoff
2c12c05621 fixed problem with system log overflow in case of missing aliases.conf
** front-ported fix **
2004-04-11 14:47:04 +00:00
robocop
d601bab884 Style 2004-04-11 07:12:09 +00:00
skidder
648dd40826 Make it build 2004-04-11 02:40:08 +00:00
dimitr
a79171299f Corrections. 2004-04-10 14:00:04 +00:00
robocop
59b235cea3 Small corrections 2004-04-10 00:25:22 +00:00
skidder
af366d4f5a Add BugcheckAbort option to produce coredumps on BUGCHECKs and structured exceptions 2004-04-06 07:25:45 +00:00
aafemt
94bbbc5a6c TLS for win32 gcc 2004-04-06 05:53:36 +00:00
alexpeshkoff
40772a2e70 Added "T* getBuffer(capacity)" - this helps use Array as temp buffer 2004-04-01 14:15:34 +00:00
alexpeshkoff
eb23cf8796 string cleanup 2004-03-31 18:10:22 +00:00
alexpeshkoff
90d3086320 fixed serious bug in string::printf - thanks to Nickolay 2004-03-31 18:09:40 +00:00
alexpeshkoff
170bef6340 moved use of fb_assert to correct place 2004-03-31 17:13:24 +00:00
robocop
1824343930 Cleanup.
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
skidder
4093bc4ace Fix error in my previous commits spotted by claudio 2004-03-28 00:38:13 +00:00
skidder
dd02aa34e6 Fix Windows build after my previous commit 2004-03-25 23:36:03 +00:00
skidder
f26d84f76b 1. POSIX build libraries export only public API. 2. Unify exports for PROD_BUILD and DEV_BUILD. 3. Support for context memory pools. 4. Memory manager has lower memory overhead exceptionally on 64 bit targets 2004-03-25 23:12:50 +00:00
skidder
eb89d0fdce Fix a couple warnings 2004-03-25 06:50:50 +00:00
skidder
bb17776b6d Notify Alex about flaw in his string code 2004-03-24 05:43:08 +00:00
alexpeshkoff
94d2f698e2 1. introduced Jrd and Ods namespaces
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
*** posix build fixes ***
2004-03-20 15:45:12 +00:00
alexpeshkoff
7007d6f2a4 1. introduced Jrd and Ods namespaces
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +00:00
alexpeshkoff
0b53355916 1. dropped unneeded AutoPtrFromString
2. added private copy constructor and assignment to avoid errors
2004-03-20 14:30:52 +00:00
alexpeshkoff
233bcc7858 assert if AutoStorage() used for object not on the stack 2004-03-20 14:29:05 +00:00
robocop
f58c769c37 Cleanup. In geeky words:
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
alexpeshkoff
0e24170951 fixing posix build 2004-03-15 19:35:00 +00:00
alexpeshkoff
151368f3cc fixing posix build 2004-03-15 19:10:44 +00:00
alexpeshkoff
e35767f54b This should fix non-VC6 builds. Thanks to Nickolay Samofatov 2004-03-15 18:48:10 +00:00
alexpeshkoff
67f1740fea Various cleanup to make engine compile and work after mentioned earlier changes.
Mainly:
1) MemoryPool* => MemoryPool& in arrays' constructors
2) use Firebird::string to keep strings data
2004-03-14 13:40:14 +00:00
alexpeshkoff
f0ef70fa45 1. Full pair (both first and second pooled objects) added.
2. Pair may be placed to AutoPool.
2004-03-14 13:24:48 +00:00
alexpeshkoff
7457f71e0f 1) a bit more correct memory allocation debugging
2) use AutoStorage to allocate string data
2004-03-14 13:22:16 +00:00
alexpeshkoff
1a925afa38 Added capability to have following kinds of arrays:
1) sorted or unsorted
2) POD or objects
3) with or without inline storage
4) allocating from auto- or permanent-pool
All array constructors take MemoryPool& instead of MemoyPool*
2004-03-14 13:19:47 +00:00
alexpeshkoff
221ae2fa2a Pools support 2004-03-14 13:14:58 +00:00
alexpeshkoff
18b7cb3710 Templates, supporting objects initialization 2004-03-14 13:10:40 +00:00
alexpeshkoff
699cf30d77 May use _any_ way to delete pointer, not only operator delete 2004-03-14 13:08:36 +00:00
alexpeshkoff
0dbd44a35b Constructors to put arrays in local memory, use AutoStorage. 2004-03-14 13:07:01 +00:00
alexpeshkoff
2ae251add1 Added *Storage classes to be used as primary base for all pool-oriented classes 2004-03-14 13:05:02 +00:00
skidder
e8a3fd7ed1 Fix a couple errors I introduced in previous commit. Spotted by Claudio 2004-03-11 05:30:07 +00:00
robocop
2ab1f94dd2 Cleanup
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
skidder
f13321bc74 Fix a few warnings. Not very harmless ones 2004-03-11 04:26:54 +00:00
skidder
b6e5ccd413 Clean up.
1. gds__alloc doesn't throw
2. Add NOMEM handlers to a couple places
3. kill HAVE_*SNPRINTF conditionals
2004-03-09 00:17:07 +00:00
robocop
e6187cecd2 Cleanup
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
alexpeshkoff
b9b470b9c1 1. front-ported blob returning fix
2.correct license
2004-03-05 09:37:18 +00:00
skidder
725b7f9972 Be slightly more portable 2004-03-02 20:23:32 +00:00
eku
b28781c507 Fixed compilation issues (missing include files, wrong defines). 2004-03-02 08:43:33 +00:00
eku
8985d4672e Fixed compilation on systems without snprintf 2004-03-02 08:42:11 +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
25b969d1b7 Fix MSVC build 2004-03-01 04:57:43 +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
skidder
4b5428f833 Memory pages manager 2004-03-01 03:18:42 +00:00
skidder
ad97d0409d Fix POSIX build 2004-02-29 05:49:03 +00:00
alexpeshkoff
87cf963814 make our class behave MemoryPools friendly 2004-02-28 19:44:04 +00:00
alexpeshkoff
0097df8f26 Made it const-correct 2004-02-28 19:19:03 +00:00
robocop
5c3c8abd9a Big cleanup.
God have pity on platform maintainers.
I only can compile/test Win32; sorry, folks.
2004-02-20 06:43:27 +00:00
aafemt
a705c5da0c Remove unneeded comparsions 2004-02-18 11:10:34 +00:00
aafemt
9c03f64c65 Fix a couple of warnings 2004-02-17 11:08:09 +00:00
alexpeshkoff
c4cd1da183 Please add this file to common section of appropriate builds!
Added native firebird::string class.
2004-02-09 07:41:45 +00:00
alexpeshkoff
efb64b2aab Added native firebird::string class. 2004-02-08 17:08:34 +00:00
alexpeshkoff
0ee51a6c60 const correctness 2004-02-08 16:35:40 +00:00
robocop
663e3b16e7 Cleanup 2004-02-02 11:02:12 +00:00
robocop
2b295a9108 General cleanup. Sorry if I missed some occurrence. 2004-01-28 07:50:41 +00:00
skidder
08eee5ebaa Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static. 2004-01-21 07:18:30 +00:00
eku
4cbef7b979 Fixed compilation problems with size_t. It's primarily defined in sys/types.h 2004-01-13 13:40:20 +00:00
eku
14b3de174e Port numbers are limited to 16 bit. 2004-01-13 13:38:36 +00:00
stryqx
f7d06df281 Fix build on FreeBSD. 2004-01-12 00:56:03 +00:00
brodsom
36acb09df9 Fix MINGW build 2004-01-07 00:32:02 +00:00
fsg
e3ba8c5f42 Some changes to get it compiled under linux.
Use const declarations for BLANK etc. in isql.h again.
FSG
2004-01-03 14:12:45 +00:00
robocop
efa538a4ca adding obviously missing files, thanks Arno. 2003-12-31 10:33:02 +00:00
robocop
16cbc204df Cleanup 2003-12-31 05:36:12 +00:00
robocop
ad0b5c4de3 General cleanup 2003-12-22 10:00:59 +00:00
dimitr
995417f11a Minor cleanup 2003-12-14 18:26:25 +00:00
skidder
7558470e08 Fix another initializatoin race condition 2003-12-14 04:34:37 +00:00
dimitr
9859341694 Let's be compatible with the config files open in binary mode. 2003-12-13 10:59:59 +00:00