2008-07-05 02:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

* source/pp/hbpp.c
   * source/pp/ppcore.c
   * source/pp/pplib.c
     ! Fixed bug introduced in r8836, so that now __HARBOUR__ 
       will again be #defined when 'harbour /u' switch is used.
       Thanks Randy.
This commit is contained in:
Viktor Szakats
2008-07-05 00:25:33 +00:00
parent 059883e598
commit 3088dd7608
4 changed files with 16 additions and 2 deletions

View File

@@ -8,6 +8,14 @@
2008-12-31 13:59 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2008-07-05 02:22 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* source/pp/hbpp.c
* source/pp/ppcore.c
* source/pp/pplib.c
! Fixed bug introduced in r8836, so that now __HARBOUR__
will again be #defined when 'harbour /u' switch is used.
Thanks Randy.
2008-07-05 01:59 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* include/hbver.h
! Typo in comment.

View File

@@ -236,7 +236,8 @@ static void hb_pp_undefCompilerRules( PHB_PP_STATE pState )
{
int i;
PHB_PP_RULE * pRulePtr, pRule;
char * szRules[] = { "__DATE__",
char * szRules[] = { "__HARBOUR__",
"__DATE__",
"__TIME__",
"__HB_MAIN__",
"__ARCH16BIT__",

View File

@@ -5221,6 +5221,11 @@ void hb_pp_initDynDefines( PHB_PP_STATE pState )
hb_pp_addDefine( pState, szDefine, szResult );
#endif
#if defined( __HARBOUR__ )
snprintf( szResult, sizeof( szResult ), "0x%02X%02X%02X", HB_VER_MAJOR & 0xFF, HB_VER_MINOR & 0xFF, HB_VER_REVISION & 0xFF );
hb_pp_addDefine( pState, "__HARBOUR__", szResult );
#endif
/* __DATE__ */
hb_dateToday( &iYear, &iMonth, &iDay );
hb_dateStrPut( szResult + 1, iYear, iMonth, iDay );

View File

@@ -134,7 +134,7 @@ PHB_PP_STATE hb_pp_Param( int iParam )
* initialize new PP context and return pointer to it.
* __PP_INIT( [<cIncludePath>] [, <cStdChFile> ] )
* when <cStdChFile> is empty string ("") then no default rules are used
* only the dynamically created #defines like __DATE__, __TIME__
* only the dynamically created #defines like __HARBOUR__, __DATE__, __TIME__
*/
HB_FUNC( __PP_INIT )
{