2006-01-09 14:50 UTC+0100 Ryszard Glab <rglab@imid.med.pl>

* include/hbexprb.c
   * source/compiler/exproptb.c
   * source/macro/macrob.c
      * fixed to release the memory if macro compiled code contains
        a variable or a function reference

   * source/rtl/filesys.c
      * added missing '(' to copile correctly on UNIX'es
This commit is contained in:
Ryszard Glab
2006-01-09 13:41:27 +00:00
parent 329135f751
commit a46e6aff0f
5 changed files with 22 additions and 3 deletions

View File

@@ -8,6 +8,17 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
* fixed <-x-> match marker
2006-01-09 14:50 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
* include/hbexprb.c
* source/compiler/exproptb.c
* source/macro/macrob.c
* fixed to release the memory if macro compiled code contains
a variable or a function reference
* source/rtl/filesys.c
* added missing '(' to copile correctly on UNIX'es
2005-12-28 13:05 UTC+0100 Antonio Linares (alinares@fivetechsoft.com)
* vm/maindll.c
+ Added new functions HBDLLENTRY1() and HBDLLENTRY2()

View File

@@ -828,6 +828,10 @@ static HB_EXPR_FUNC( hb_compExprUseVarRef )
case HB_EA_STATEMENT:
hb_compWarnMeaningless( pSelf );
case HB_EA_DELETE:
/* NOTE: variable name should be released if macro compilation */
#if defined( HB_MACRO_SUPPORT )
HB_XFREE( pSelf->value.asSymbol );
#endif
break;
}
return pSelf;
@@ -859,6 +863,10 @@ static HB_EXPR_FUNC( hb_compExprUseFunRef )
case HB_EA_STATEMENT:
hb_compWarnMeaningless( pSelf );
case HB_EA_DELETE:
/* NOTE: function name should be released if macro compilation */
#if defined( HB_MACRO_SUPPORT )
HB_XFREE( pSelf->value.asSymbol );
#endif
break;
}
return pSelf;

View File

@@ -5,6 +5,6 @@
/* hbexprb.c is also included from ../macro/macro.c
* However it produces a slighty different code if used in
* macro compiler (there is an additional parameter passed to some functions)
* 1.14 - ignore this magic number - this is used to force compilation
* 1.15 - ignore this magic number - this is used to force compilation
*/
#include "hbexprb.c"

View File

@@ -5,7 +5,7 @@
/* hbexprb.c is also included from ../compiler/exproptb.c
* However it produces a slighty different code if used in
* macro compiler (there is an additional parameter passed to some functions)
* 1.13 - ignore this magic number - this is used to force compilation
* 1.14 - ignore this magic number - this is used to force compilation
*/
#define HB_MACRO_SUPPORT

View File

@@ -844,7 +844,7 @@ BOOL HB_EXPORT hb_fsSetDevMode( FHANDLE hFileHandle, USHORT uiDevMode )
HB_SYMBOL_UNUSED( hFileHandle );
if uiDevMode == FD_TEXT )
if( uiDevMode == FD_TEXT )
{
hb_fsSetError( ( USHORT ) FS_ERROR );
return FALSE;