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

48 Commits

Author SHA1 Message Date
robocop
51d3c9b756 Let's use more typical #ifdef to test macros instead o #if. 2009-05-29 11:27:41 +00:00
asfernandes
f532f6975e Misc 2009-01-21 15:42:45 +00:00
robocop
bc2e065baa Fix CORE-2281 and CORE-2282. 2009-01-21 09:58:04 +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
robocop
5ebd69a9b3 No need to provide parameters with default values. 2008-03-28 13:26:56 +00:00
dimitr
b87b5032ef Changes in the TimeStamp class by Dmitry Kovalenko. 2008-03-26 10:21:04 +00:00
robocop
7274dc89c1 Totally misc. 2007-02-20 08:40:38 +00:00
alexpeshkoff
bf3b16eb9d commited patch of Gerard Patel 2006-08-21 08:23:02 +00:00
robocop
74461a8a64 CORE-858
Misc, related to the other data type changes.
2006-07-21 06:57:44 +00:00
robocop
92ea43a721 CORE-858
In version 1.15, I fixed a bug but introduced a worse one. It went unnoticed for more than two years, but fbudf has memory problem when dealing with varchars due to a silly change in the vary struct definition.
I think these h and cpp can be copied safely from the HEAD to FB2.0.
2006-07-21 06:55:37 +00:00
robocop
4e754ec8e4 Migrate fbudf to platform-neutral integral types. 2006-06-03 05:24:33 +00:00
robocop
38b063b3de I misread the logic: it's true (not false) that tells Timestamp to not call the operating system to get the current time. Thanks to D. Sibiryakov. 2006-02-04 02:40:20 +00:00
robocop
7a3f8e5cb2 fbudf wasn't really thread safe (despite the Mutex) when dealing with the non-reentrant functions localtime and gmtime because we need to copy the contents of the result pointer to a local variable before releasing the Mutex. 2006-02-02 00:39:02 +00:00
robocop
0c28df8cf2 Declare independence day from client library for fbudf . For builds other than MSVC6, the following has to be done:
- add to fbudf project the files timestamp.cpp and timestamp.h
- for the same project, define FBUDF_EXPORTS as preprocessor macro
- for the firebird2 workspace/solution/make/etc get rid of the dependency of fbudf on fbclient. Build files that I indentified that need fixes are:
builds\posix\Makefile.in.client.fbudf
builds\posix\Makefile.in.embed.fbudf
builds\win32\msvc7\fbudf.vcproj
builds\win32\msvc7\Firebird2.sln
MacOs build files ignore fbudf completely.
This change eliminates the problem with the client library having different names depending on the build type (SS, CS, embedded).
2006-02-02 00:28:03 +00:00
alexpeshkoff
64d2be0337 make fbudf use fb2 class Mutex, when needed 2005-12-24 17:05:30 +00:00
robocop
dc007572fb Add getExactTimestampUTC and put some indications. Alex will fix my stub code.
It seems gmtime doesn't work as expected at least with VC6.
2005-12-23 23:08:09 +00:00
robocop
bb31662854 Solve bug with AddMonth when facing January.
Include little IsLeapYear function.
2005-03-26 05:01:01 +00:00
robocop
b67464ddff Alternative addDay2 function (same usage, more orthodox handling).
Same can be done for other Add<part> functions.
2004-10-28 04:47:32 +00:00
robocop
b3dda49b1a Alternative addDay2 function (same usage, more orthodox handling).
Same can be done for other Add<part> functions.
2004-10-28 04:36:24 +00:00
robocop
a80a37cd1b Make fbudf more civilized:
- Functions that use an output argument shouldn't return anything.
- Signal null output blob if the engine understands it.
- Make input parameter const except in some cases where the library plays with input params using internal engine knowledge (not recommended for general usage).
2004-10-04 08:47:41 +00:00
robocop
aa894d7399 Put comment on deprecated functions. 2004-09-29 06:42:29 +00:00
robocop
5e6a04b6d7 Fix problem reported by "jssahdra" in fb-support. Numeric overflow caused resulting timestamp to go backwards instead of forward. 2004-09-29 06:41:46 +00:00
robocop
434bbadd44 Learning to spell my own surname.
:-)
2004-09-23 04:51:52 +00:00
brodsom
1aa7b9452c Looking for extra ; at namespace declaration end 2004-06-13 23:45:02 +00:00
robocop
b12c1b705b Use the vary struct as the engine does to know the length of a varchar
Style
2004-05-31 02:37:32 +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
brodsom
b30a0b8799 Macro cleaning 2004-05-12 00:02:37 +00:00
brodsom
8b5d33b5ea Fix warning 2004-05-05 21:49:50 +00:00
brodsom
89e8f89f86 Extern "C" cleaning 2003-11-06 03:03:36 +00:00
eku
da0d0f068f Cleanup usage of gettimeofday. 2003-10-31 11:33:45 +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
robocop
cfb982a0fe Fix script for SF bug #819224 => Change the comment, too. 2003-10-09 03:54:26 +00:00
robocop
8a25af8cac Fix script for SF bug #819224 2003-10-09 03:38:28 +00:00
stryqx
674fa73b6a style 2003-10-07 10:43:20 +00:00
stryqx
bd8c3bf757 Fix build with gcc 3.3 2003-10-07 10:33:51 +00:00
brodsom
f02ef90cdc Move WIN32_LEAN_AND_MEAN to autoconfig_msvc.h. 2003-02-25 12:55:20 +00:00
brodsom
e4b24a1d1a Restore inlines 2003-02-24 23:55:36 +00:00
brodsom
8bdf295e25 Change build system to move warning control to only one header for each compiler 2003-02-16 11:39:22 +00:00
brodsom
45efaaa7e0 Remove inline keyword. 2003-02-13 22:49:16 +00:00
dimitr
fb3701280c Updated fbudf files. 2003-01-24 12:05:25 +00:00
stryqx
d43525804c Rename truncate to fbtruncate to avoid conflict with standard C/C++ library. 2002-10-12 04:12:47 +00:00
eku
ef2ff91438 Autoconf cleanup:
o use predefined macros to test for sys/wait.h, time.h and sys/time.h
 o search strcasecmp in libresolv only if strcasecmp and stricmp are not in libc
 o use predefined macro AC_SYS_LARGEFILE to determine 64Bit I/O
 o determine the alignment of long and double (ALIGNMENT,DOUBLE_ALIGN),
   still need to write a test for FB_ALIGN!
2002-09-18 12:50:13 +00:00
dimitr
869af73a68 Minor build changes in the UDF libraries. 2002-09-03 17:23:16 +00:00
eku
a51db40856 Needs include file common.h to compile. 2002-08-28 07:11:15 +00:00
eku
076de37a9f Huge 'gettimeofday' cleanup:
o check for the availability in configure
 o check for the number of arguments in configure
 o synchronised config.h.in and MSVC pendant

NOTE: If you have problems on your system, don't change the source.
      Extend the tests in configure.in!!!
2002-08-14 11:14:01 +00:00
skywalker
a354d5a15f put testreflect into dev build only 2002-06-29 17:20:31 +00:00
skywalker
6eaa5d6ef9 Ported code changes from fb1 2002-06-29 16:35:19 +00:00