2009-06-30 13:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/rtl/datec.c
    * added workaround for CodeGuard false bug report covered by
      __CODEGUARD__ macro. Chen, if possible please test.
This commit is contained in:
Przemyslaw Czerpak
2009-06-30 11:32:16 +00:00
parent 7d0f008300
commit d7ccd6202e
2 changed files with 13 additions and 2 deletions

View File

@@ -17,6 +17,11 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-06-30 13:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/datec.c
* added workaround for CodeGuard false bug report covered by
__CODEGUARD__ macro. Chen, if possible please test.
2009-06-30 12:20 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbrdddbf.h
! fixed declaration

View File

@@ -56,18 +56,24 @@
#include "hbapilng.h"
#include "hbdate.h"
#if defined(__CODEGUARD__)
static const char s_nullStr[ 4 ] = { 0 };
#else
# define s_nullStr ""
#endif
const char * hb_dateCMonth( int iMonth )
{
HB_TRACE(HB_TR_DEBUG, ("hb_dateCMonth(%d)", iMonth));
return ( iMonth >= 1 && iMonth <= 12 ) ? hb_langDGetItem( HB_LANG_ITEM_BASE_MONTH + iMonth - 1 ) : "";
return ( iMonth >= 1 && iMonth <= 12 ) ? hb_langDGetItem( HB_LANG_ITEM_BASE_MONTH + iMonth - 1 ) : s_nullStr;
}
const char * hb_dateCDOW( int iDay )
{
HB_TRACE(HB_TR_DEBUG, ("hb_dateCDOW(%d)", iDay));
return ( iDay >= 1 && iDay <= 7 ) ? hb_langDGetItem( HB_LANG_ITEM_BASE_DAY + iDay - 1 ) : "";
return ( iDay >= 1 && iDay <= 7 ) ? hb_langDGetItem( HB_LANG_ITEM_BASE_DAY + iDay - 1 ) : s_nullStr;
}
HB_FUNC( CMONTH )