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

45 Commits

Author SHA1 Message Date
alexpeshkoff
c01a5f0823 misc 2008-12-04 09:29:40 +00:00
asfernandes
f10505e82b Misc 2008-04-30 01:48:11 +00:00
asfernandes
8d04f25fb3 Misc 2008-04-30 01:42:09 +00:00
robocop
a7d9e7f25c DirectoryList wasn't used, so I'm deleting it.
Fortunately, because it has half-finished functionality.
2008-04-29 12:37:02 +00:00
robocop
39e02e49fb 1.- Style.
2.- Cleanup.
3.- Put enumerations and plain structures in their due classes, checked constness, commented or deleted unused crap (watch stupid macros in header files that pollute all the files where such headers are included), etc.

There's a lot of pending work to do. Still trying to convert to decent C++ this barbarian code probably written by Genghis Khan or Attila the Hun.
2008-04-29 12:01:24 +00:00
robocop
9953529694 1.- Style.
2.- Cleanup.
3.- Put a compilation warning on DirectoryList::matchFileName because the function's purpose only can be guessed: it returns true unconditionally. Maybe it was expected to tell us if a file name matched a directory name or querying the operating system to know whether the file existed inside the given directory name. Anyway, since it does nothing useful, DirectoryList::validateFilename is suspicious, too, since it uses the former in a loop.
2008-04-29 11:33:11 +00:00
robocop
0a9c97a255 1.- Style.
2.- Cleanup.
3.- Mark a disastrous condition in Stream::allocSegment in DEBUG mode at least so it can be detected: potentially negative argument to
new char[<number>] if the caller of the function doesn't do what's expected by this function.
4.- Now that the weed JString was eradicated, rename Stream::getJString to getFBString and put an assertion to verify the initial assumption (in the worst case, it could be a buffer overrun).
5.- Fix a deallocation bug (probable heap corruption) in Stream::truncate because delete[] should be used instead of plain delete.

Generally speaking, the code inherited from Vulcan is so weak that expects the caller to know the internal logic of the callee to do the right thing to avoid crashing the callee. This is a general problem with the files in the "config" dir.
2008-04-29 11:23:06 +00:00
robocop
f075a729a5 1.- Style.
2.- Cleanup.
3.- Fix an invalid memory access when returning data member belonging to an object from the stack in
ConfObject::getConcatenatedValues. I didn't see a runtime error because I don't use the feature, but reading the code is enough.
2008-04-29 11:10:35 +00:00
robocop
5ee6bf66b6 1.- Style.
2.- Cleanup.
3.- Fix what I assume may cause astray behavior. Only an inept could create an enumeration in Lex.h like this
enum TokenType {
	END_OF_STREAM,
	PUNCT,
	NAME,
to be used in the data member tokenType but at the same time, create preprocessor macros like this
#define WHITE	1
#define PUNCT	2
to be stored and retrieved by
char charTableArray [256]
to calculate the character class (punctuation, spaces, etc) in the Lexer,
where the macro PUNCT (value 2) overrides the enum member PUNCT (value 1) and that inconsistent value is used in both tasks, causing PUNCT to be interpreted as tokenType being NAME (value 2 in the enum). Since this module has several bugs, maybe all the bugs cancel among themselves and all works as expected, but it would be pure luck.
2008-04-29 11:05:11 +00:00
asfernandes
53a2090f65 Misc 2008-04-27 02:39:51 +00:00
hvlad
a622fe2bfe Fix MSVC build after JString removal 2008-04-25 08:40:00 +00:00
alexpeshkoff
c0a472d65e 1. Replaced JString (and some plain char[] buffers) with Firebird::string.
2. Make memory allocations look (and wrok) in current firebird style.
3. Fixed vararg usage problem on amd64/linux in AdminException.
2008-04-24 15:49:43 +00:00
asfernandes
cfb2b8ee91 Misc 2008-04-23 02:19:25 +00:00
robocop
4f18a793f0 Maybe it's just my imagination, but I see more B.O. 2008-04-21 13:45:37 +00:00
robocop
f8a2702b69 Buffer overrun and null pointer exception courtesy of Jim.
:-(
2008-04-21 12:56:16 +00:00
robocop
7333e03c17 More encapsulation, bring some order, fix some B.O. cases, etc. 2008-04-20 11:46:02 +00:00
robocop
60802a9d77 Fix the most obvioius problems:
- style (few fixes only)
- constness
- total lack of encapsulation (all data members exposed in the interface).
2008-04-20 10:40:58 +00:00
robocop
5d12ca3dca Constness. 2008-04-19 09:40:19 +00:00
asfernandes
c5cb7cb934 Improvement CORE-1814 - Change the root determination of the embedded Windows engine and load DLLs with altered search path (to search dependent DLLs on the same path of the loaded DLL) 2008-04-01 15:27:16 +00:00
dimitr
172c4ba85c The merge continued. 2008-01-16 06:33:06 +00:00
paulbeach
c823619e92 HPUX Port 2007-11-12 15:18:49 +00:00
alexpeshkoff
53488d03bb Comment 2007-08-22 06:52:34 +00:00
alexpeshkoff
e4630a8800 Make firebird.h first include file - specially required for solaris 2007-08-21 13:34:00 +00:00
asfernandes
6f274f3b41 Fixed BOs 2007-05-14 15:27:52 +00:00
asfernandes
f676883248 Misc 2007-04-21 03:27:36 +00:00
robocop
5efeb69488 Fixing the interface of this crap plus buffer overruns. 2007-04-18 11:55:29 +00:00
robocop
46df6dd844 Misc. 2007-04-18 11:02:41 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
robocop
22decb76f7 Misc. 2007-04-10 10:04:00 +00:00
alexpeshkoff
6e735f7c53 Misc + gcc warning hunting 2007-04-09 16:15:29 +00:00
aafemt
c662ea7d9e Warnings 2006-08-17 12:08:49 +00:00
alexpeshkoff
0c3169add8 each file must have firebird.h included first 2006-07-26 09:33:44 +00:00
alexpeshkoff
204db65b17 force use of redefined new/delete 2006-06-16 12:36:09 +00:00
asfernandes
ca0630eef4 Misc 2006-06-15 01:53:25 +00:00
asfernandes
68deb72e2d Don't access negative elements in array 2006-06-05 13:01:14 +00:00
robocop
c5f2284b15 Style. 2006-04-06 08:18:53 +00:00
robocop
03a066dcb9 [s|g]etConfigFile renamed [s|g]setConfigFilePath. Clearer, since we have a class named ConfigFile but the function only returns a string with the path, not an object. 2005-12-25 03:59:49 +00:00
robocop
66f466d3a9 Misc. 2005-07-08 03:25:31 +00:00
aafemt
fca28dd3c5 Cleanup 2005-06-23 05:25:11 +00:00
aafemt
b61d8b3c17 Warnings 2005-06-22 05:13:54 +00:00
aafemt
8b050f5d80 Warnings 2005-06-21 10:26:56 +00:00
aafemt
937cf903b4 Overloaded operators is evil 2005-06-17 10:42:57 +00:00
aafemt
c3c8220a96 Required header 2005-06-07 10:36:08 +00:00
robocop
b8d1f00f94 - Corrections and changes to Adriano's commit, subject to his inspection.
- Solved an endless loop with trim and zero-length trim characters, etc.
- Some places are signaled with FB_COMPILER_MESSAGE for prompt attention.
2005-06-06 08:30:03 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00