From 19940ce68b89a767f398fb6011297f7305b97d6e Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 2 Aug 2000 01:32:35 +0000 Subject: [PATCH] 2000-08-02 03:31 UTC+0100 Victor Szakats --- harbour/ChangeLog | 11 +++++++++++ harbour/makefile.bc | 4 +++- harbour/source/rtl/dateshb.c | 4 ++++ harbour/source/rtl/datesx.c | 4 ++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 8aef17cf3d..a7b95a4983 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,14 @@ +2000-08-02 03:31 UTC+0100 Victor Szakats + + * source/rtl/dateshb.c + * source/rtl/datesx.c + ! Fixed HB_SToD() and SToD() to not cause CodeGuard faults on bad + parameters. Define HB_FAST_STOD macro to get the previous faster + versions. + + * makefile.bc + * Small formatting. + 2000-08-02 03:14 UTC+0100 Victor Szakats * source/common/hbver.c diff --git a/harbour/makefile.bc b/harbour/makefile.bc index 34b42f781a..7026a87d7b 100644 --- a/harbour/makefile.bc +++ b/harbour/makefile.bc @@ -30,7 +30,9 @@ # # NOTE: BCC_NOSTARTUP must be defined for Borland C++ 5.3 to make it work. # -.autodepend + +.AUTODEPEND + !if $d(B16) BCC_NOSTARTUP = "" diff --git a/harbour/source/rtl/dateshb.c b/harbour/source/rtl/dateshb.c index 21de5fde50..03c953b045 100644 --- a/harbour/source/rtl/dateshb.c +++ b/harbour/source/rtl/dateshb.c @@ -190,7 +190,11 @@ HB_FUNC( DTOS ) HB_FUNC( HB_STOD ) { +#ifdef HB_FAST_STOD hb_retds( hb_parc( 1 ) ); +#else + hb_retds( ( ISCHAR( 1 ) && hb_parclen( 1 ) == 8 ) ? hb_parc( 1 ) : " " ); +#endif } HB_FUNC( YEAR ) diff --git a/harbour/source/rtl/datesx.c b/harbour/source/rtl/datesx.c index 6a220f4c6c..d980d6d2e4 100644 --- a/harbour/source/rtl/datesx.c +++ b/harbour/source/rtl/datesx.c @@ -42,7 +42,11 @@ HB_FUNC( STOD ) { +#ifdef HB_FAST_STOD hb_retds( hb_parc( 1 ) ); +#else + hb_retds( ( ISCHAR( 1 ) && hb_parclen( 1 ) == 8 ) ? hb_parc( 1 ) : " " ); +#endif } #endif