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

59 Commits

Author SHA1 Message Date
robocop
e5b226f7a7 More unused params; style. 2009-05-02 13:00:09 +00:00
robocop
66b1227b22 Unused params, some formatting, cleanup. 2009-05-01 17:21:36 +00:00
robocop
888000e21e Unused function params. 2009-04-26 10:24:44 +00:00
robocop
1452ca21c1 Misc. 2009-04-15 06:40:17 +00:00
robocop
fab6a3a6cf Get rid of superflous parentheses. 2009-02-28 11:57:40 +00:00
robocop
096d8e78e6 Trying to be more consistent in the detection of headers (HAVE_* macros). 2009-02-08 11:38:00 +00:00
hvlad
fa896415c2 Make vulcan's config file work with configuration from text string. 2009-02-01 21:56:45 +00:00
asfernandes
a177d28d60 Misc 2008-12-31 20:22:10 +00:00
alexpeshkoff
1dec341bac Commented unused problematic method instead of fixing it 2008-12-30 17:57:22 +00:00
alexpeshkoff
78e2e27426 AIX port 2008-12-25 10:01:57 +00:00
robocop
9c9e4e9b0b There's no need to check whether a pointer is null before applying delete or delete[]. 2008-12-20 08:16:55 +00:00
alexpeshkoff
9e6c5f0b90 OS-independent way to detect presence of dirent.d_type - suggested by Bill Oliver 2008-12-09 14:46:46 +00:00
asfernandes
8fbf0e8e8c Remove trailing spaces (.cpp files) 2008-12-05 01:20:14 +00:00
asfernandes
ff5f8745fb Remove trailing spaces (.h files) 2008-12-05 00:56:15 +00:00
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