robocop
541fe6c579
It seems that all of Jim's hand-made parsers have had the same bug for 20 years in compilers that treat the "char" type as signed byte internally: they get random character attributes because they apply negative indices (obviously out of bounds) to the array of char attributes for any char value greater than 127. And all of them do their work in slightly but almost equal way... tell me about code redundance! This without losing time fixing unused stuff like jrd/jlx.c.
2006-06-08 05:15:37 +00:00
dimitr
7cc12e8489
1) Reworked memory management in SORT. Now we're pools aware there.
...
2) Reworked error handling in SORT and its callers.
3) Replaced DLS+SortMem with the generic TempSpace class.
4) Replaced GDS temp file management with the TempFile class.
5) Various cleanup.
2006-05-31 08:53:00 +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
robocop
187b320513
Forward-port Ann's enhancement to gpre to allow more range for identifiers (more changes may be needed in the future to complete the feature).
2005-12-09 05:07:57 +00:00
alexpeshkoff
0601ed34a6
fixed declarations of gds__temp_file() parameter -
...
buffer overflows were possible
2005-05-14 10:42:58 +00:00
robocop
0d4bd2e497
Fix SF Bug #504978 . Restore gpre ability to work with variables up to 63 bytes in length. Now that the lengths are expressed by constants instead of random values in each place, the limit may be increased further. The problem happened between IB5 and IB6 at Borland.
2005-01-17 05:02:09 +00:00
robocop
165e4a186d
Fixing more inconsistencies.
2005-01-07 04:00:19 +00:00
robocop
bfd96a4936
More constants.
2005-01-05 03:58:49 +00:00
robocop
fd7b507d19
More constants.
2005-01-05 02:06:31 +00:00
robocop
f550ca480f
Misc.
2004-12-09 02:53:19 +00:00
robocop
0dd1aced53
Misc.
2004-12-09 02:50:47 +00:00
robocop
d6535351a2
Misc: style.
2004-11-24 09:22:07 +00:00
robocop
628b088d2c
Treat string literals and string constants with more respect.
2004-11-10 04:26:45 +00:00
robocop
f264ecf391
Be more respectful of literal strings.
2004-10-30 05:30:08 +00:00
robocop
d973e20600
Looking at gpre.c in FB1 and the usage of the variable fatal_env, it's evident that the conversion SEH->C++ try/except screwed the logic. The original idea was that CPR_abort will cause the program to exit gracefully, not to continue parsing, because it's useless and clutters the console with hundreds of messages. As far as I can test, when gpre cannot attach to the db, run-time failures can be detected by gpre_static or a false result is converted in exception. The new gpre_exception propagates up to the highest level where it allows the program to exit gracefully as it was in FB1. Until now, the behavior in FB1.5 & FB2 has been annoying. When we fail to connect to the db, anything more than we do is useless; we now will print a message, clean the house and exit. Hope everyone can compile my change.
2004-10-07 09:59:02 +00:00
brodsom
3bcf37fcd1
Assert or silence uninitialized warning
2004-08-26 21:44:11 +00:00
robocop
1332d98618
Literal strings should be treated as const char*
2004-06-05 09:37:18 +00:00
robocop
7b51928503
Style
2004-05-29 04:55:23 +00:00
brodsom
57f6bc46d5
-Join gpre globals in one struct (and remove some macros) and put not globals in the corresponding source.
...
-Use C++ struct declaration style.
2004-05-24 17:13:38 +00:00
brodsom
87099930b3
bad if
2004-05-13 22:34:27 +00:00
eku
3657b2eaab
Fixed Blas' corrections.
2004-05-13 06:48:41 +00:00
brodsom
1ffe279896
-Avoid shadow warning
2004-05-12 19:39:17 +00:00
brodsom
0daa189563
Removing ib_stdio.h
2004-04-28 22:36:29 +00:00
robocop
59b235cea3
Small corrections
2004-04-10 00:25:22 +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
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
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
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
robocop
fd93837ec3
Cleanup:
...
const correctness
BOOLEAN -> bool
Vars in scope
Formatting
JRD_REQ -> jrd_req*
JRD_TRA -> jrd_tra*
JRD_REL -> jrd_rel*
JRD_FLD -> jrd_fld*
event -> event_t, EVENT_T dropped, EVENT should go in the future
Frank's corrections
alice's STR -> alice_str*
remote's STR -> rem_str*
etc.
It creates entities and backups and restores for me. :-)
2004-01-03 10:59:52 +00:00
robocop
9fafc348bf
const correctness
...
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
brodsom
abe35ef6fe
-Remove unneeded setjmp header
2003-11-18 12:39:12 +00:00
robocop
f55c6f6f8c
const correctness and cleanup
2003-11-10 09:16:38 +00:00
brodsom
ff070a16a8
Replacing assert with fb_assert
2003-11-03 23:59:24 +00:00
robocop
9ead7a37b4
const correctness
...
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
brodsom
9b1df738ac
Remove unneeded MINGW ifdef
2003-10-29 00:31:51 +00:00
robocop
8182b6cba2
const correctness and other tasks
2003-10-16 08:51:06 +00:00
brodsom
0fde011121
Macro cleaning
2003-10-15 01:18:01 +00:00
brodsom
938e66eb2f
Macro cleaning
2003-10-14 22:22:32 +00:00
robocop
f8fadc0c40
const correctness and some variables in scope
2003-10-06 09:48:44 +00:00
brodsom
2aeb693d06
extern cleaning
...
removing underscores in macros
DLL_EXPORT cleaning
2003-10-03 01:53:34 +00:00
aafemt
7c3870cbe7
Gpre used during build doesn't need additional language modules
2003-09-24 10:39:20 +00:00
brodsom
e4d5e4b3f5
-Remove some macros or transform to inline
...
-Rename tok_quoted to tok_sglquoted
2003-09-12 16:35:40 +00:00
brodsom
882be4631a
-BOOLEAN cleaning
...
-Rename rse to gpre_rse (Nickolay's request)
2003-09-12 02:21:53 +00:00
brodsom
e5393798af
-Removing PYXIS
...
-Cleaning BOOLEAN
2003-09-11 02:13:46 +00:00
brodsom
1faaac2d34
-BOOLEAN cleaning
...
-Remove pfn_SQE_list_cb function casts
2003-09-10 19:48:53 +00:00
robocop
65df94f50a
const correctness, almost minimal scope for variables, bool, etc.
...
Hope I did integrate others' changes correctly and totally.
2003-09-08 11:27:51 +00:00
brodsom
69698fc2eb
Remove unneeded extern C
2003-09-06 00:52:10 +00:00
aafemt
1cee5265b8
'struct' cleanup
2003-09-05 10:14:08 +00:00