2001-08-09 17:45 UTC-0800 Ron Pinkas <ron@profit-master.com>

* source/compiler/harbour.c
     * Minor correction to handling of HB_FS_FIRST

   * source/vm/hvm.c
     * Added extern "C" protection to hb_macroAutoSetMacro() declaration.
This commit is contained in:
Ron Pinkas
2001-08-10 00:43:13 +00:00
parent e0bc3c2684
commit 515035d9fe
3 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2001-08-09 17:45 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/harbour.c
* Minor correction to handling of HB_FS_FIRST
* source/vm/hvm.c
* Added extern "C" protection to hb_macroAutoSetMacro() declaration.
2001-08-08 15:30 UTC-0400 David G. Holm <dholm@jsd-llc.com>
* tests/gtstdtst.prg

View File

@@ -3756,7 +3756,7 @@ int hb_compCompile( char * szPrg, int argc, char * argv[] )
{
hb_compOptimizeFrames( pFunc );
if( szFirstFunction == NULL && pFunc->szName[0] && pFunc->cScope == 0 )
if( szFirstFunction == NULL && pFunc->szName[0] && ! ( pFunc->cScope & HB_FS_INIT || pFunc->cScope & HB_FS_EXIT ) )
{
szFirstFunction = pFunc->szName;
}

View File

@@ -264,7 +264,11 @@ int hb_vm_aiExtraElements[HB_MAX_MACRO_ARGS], hb_vm_iExtraElementsIndex = 0, hb_
int hb_vm_iExtraIndex;
extern ULONG hb_macroAutoSetMacro( ULONG ulFlag );
#ifdef __cplusplus
extern "C" ULONG hb_macroAutoSetMacro( ULONG ulFlag );
#else
extern ULONG hb_macroAutoSetMacro( ULONG ulFlag );
#endif
/* Request for some action - stop processing of opcodes
*/