2006-05-29 14:10 UTC+0100 Ryszard Glab <rglab//imid.med.pl>

* source/pp/ppcore.c
      *fixed invalid memory access

   * source/compiler/harbour.c
      *fixed to generate error in cases when variable name is duplicated
      in PARAMETERS and PRIVATE statements (NOTICE: this error is
      generated when automatic memvar declaration was requested only
      using -a command line switch)
This commit is contained in:
Ryszard Glab
2006-05-29 11:59:37 +00:00
parent ad6dfff8e1
commit 66f19fe13b
3 changed files with 25 additions and 2 deletions

View File

@@ -8,6 +8,17 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
+ doc/howtorel.txt
+ How-to-Release document by Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* doc/whatsnew.txt
+ Add tag information to all tagged builds.
* harbour.spec
* doc/whatsnew.txt
* include/hbver.h
* modified to store build number 46
2006-05-29 14:10 UTC+0100 Ryszard Glab <rglab//imid.med.pl>
in PARAMETERS and PRIVATE statements (NOTICE: this error is

View File

@@ -931,6 +931,8 @@ void hb_compVariableAdd( char * szVarName, BYTE cValueType )
pFunc->pMemvars = pVar;
else
{
hb_compCheckDuplVars( pFunc->pMemvars, szVarName );
pLastVar = pFunc->pMemvars;
while( pLastVar->pNext )
pLastVar = pLastVar->pNext;

View File

@@ -2863,6 +2863,10 @@ static int getExpReal( char *expreal, char **ptri, BOOL prlist, int maxrez, BOOL
StBr3++;
State = STATE_BRACKET;
}
else if( **ptri == '}' && StBr3 == 0 )
{
rez = TRUE;
}
else if( **ptri == ',' )
{
if( !prlist )
@@ -3185,7 +3189,7 @@ static void SearnRep( char *exppatt, char *expreal, int lenreal, char *ptro, int
{
bFound = TRUE;
rezs = FALSE;
ptr = ptrOut + ifou - 2;
ptr = ptrOut + ifou - 1;
kolmarkers = 0;
ptr = PrevSquare( ptr, ptro, &kolmarkers );
if( ptr )
@@ -3757,7 +3761,13 @@ int hb_pp_RdStr( FILE * handl_i, char *buffer, int maxlen, BOOL lContinue, char
s_ParseState = STATE_NORMAL;
}
readed++;
if( maxlen )
{
if( readed < maxlen )
readed++;
}
else
readed++;
buffer[readed] = '\0';
#if 0