2006-03-28 14:35 UTC+0100 Ryszard Glab <rglab//imid.med.pl>

* include/hbexpra.c
    * fixed optimization of 'EVAL' in macro compiler

  * source/pp/ppcore.c
    * fixed calculation of length of stringify expressions
This commit is contained in:
Ryszard Glab
2006-03-28 12:25:21 +00:00
parent ff0af41f5e
commit 7864d83543
3 changed files with 10 additions and 2 deletions

View File

@@ -8,6 +8,14 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
* source/pp/ppcore.c
* added two guards for buffer overflow
2006-03-28 18:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/harbour.c
! upper the default .prg function name created from .prg file name
when compiled without -n switch
2006-03-28 17:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/hvm.c

View File

@@ -387,7 +387,7 @@ HB_EXPR_PTR hb_compExprNewFunCall( HB_EXPR_PTR pName, HB_EXPR_PTR pParms )
#ifndef HB_MACRO_SUPPORT
hb_compExprNewSend( pParms->value.asList.pExprList, hb_compIdentifierNew( "EVAL", TRUE ) ),
#else
hb_compExprNewSend( pParms->value.asList.pExprList, "EVAL" ),
hb_compExprNewSend( pParms->value.asList.pExprList, hb_strdup("EVAL") ),
#endif
hb_compExprNewArgList( pParms->value.asList.pExprList->pNext ) );

View File

@@ -3387,7 +3387,7 @@ static int pp_Stringify( BOOL bSmart, char **ptro, int *lenres, char *expr, int
( *ptro )++;
rmlen++;
}
rmlen += lenitem + iAdd;
rmlen += lenTrim + iAdd;
return rmlen;
}