2011-03-04 11:31 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/src/pp/pplib.c
    * updated function description

  * harbour/src/pp/pplib3.c
    * covered old long time obsolete functions:
          __PPADDRULE(), __PREPROCESS(), __PP_FREE()
      by HB_LEGACY_LEVEL3 macro
This commit is contained in:
Przemyslaw Czerpak
2011-03-04 10:31:18 +00:00
parent 1719cfa12d
commit e03dbb75d6
3 changed files with 18 additions and 5 deletions

View File

@@ -16,6 +16,15 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-03-04 11:31 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/pp/pplib.c
* updated function description
* harbour/src/pp/pplib3.c
* covered old long time obsolete functions:
__PPADDRULE(), __PREPROCESS(), __PP_FREE()
by HB_LEGACY_LEVEL3 macro
2011-03-04 00:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbmzip/3rd/minizip/ioapi.h
! Fixed high chars resulting from copy/pasting from e-mail msg.

View File

@@ -154,7 +154,7 @@ PHB_PP_STATE hb_pp_Param( int iParam )
/*
* initialize new PP context and return pointer to it.
* __PP_INIT( [<cIncludePath>], [<cStdChFile> ] [, <lArchDefs>] )
* __PP_INIT( [<cIncludePath>], [<cStdChFile> ] [, <lArchDefs>] ) -> <pPP>
* when <cStdChFile> is empty string ("") then no default rules are used
* only the dynamically created #defines like __HARBOUR__, __DATE__, __TIME__
*/
@@ -165,7 +165,7 @@ HB_FUNC( __PP_INIT )
if( pState )
{
const char * szPath = hb_parc( 1 ), * szStdCh = hb_parc( 2 );
HB_BOOL fArchDefs = ! HB_ISLOG( 3 ) || hb_parl( 3 );
HB_BOOL fArchDefs = hb_parldef( 3, 1 );
PHB_ITEM ppItem;
pStatePtr = ( PHB_PP_STATE * ) hb_gcAllocate( sizeof( PHB_PP_STATE ),
@@ -196,7 +196,7 @@ HB_FUNC( __PP_INIT )
/*
* add new (or replace previous) include paths.
* __PP_PATH( <pPP>, <cPath> [, <lClearPrev>] )
* __PP_PATH( <pPP>, <cPath> [, <lClearPrev>] ) -> NIL
*/
HB_FUNC( __PP_PATH )
{
@@ -208,7 +208,7 @@ HB_FUNC( __PP_PATH )
/*
* reset the PP context (remove all rules added by user or preprocessed code)
* __PP_RESET( <pPP> )
* __PP_RESET( <pPP> ) -> NIL
*/
HB_FUNC( __PP_RESET )
{
@@ -220,7 +220,7 @@ HB_FUNC( __PP_RESET )
/*
* preprocess and execute new preprocessor directive
* __PPADDRULE( <pPP>, <cDirective> )
* __PP_ADDRULE( <pPP>, <cDirective> ) -> <lOK>
*/
HB_FUNC( __PP_ADDRULE )
{

View File

@@ -55,6 +55,8 @@
#include "hbvm.h"
#include "hbinit.h"
#ifdef HB_LEGACY_LEVEL3
HB_FUNC_EXTERN( __PP_INIT );
HB_FUNC_EXTERN( __PP_ADDRULE );
HB_FUNC_EXTERN( __PP_PROCESS );
@@ -152,3 +154,5 @@ HB_FUNC( __PP_FREE )
s_pp = NULL;
}
}
#endif /* HB_LEGACY_LEVEL3 */