2008-07-30 15:39 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/compiler/harbour.y
  * harbour/source/compiler/harbour.yyc
    ! fixed wrongly hidden error message - it was causing memory leak
      Thanks to Roberto for information.
This commit is contained in:
Przemyslaw Czerpak
2008-07-30 13:39:58 +00:00
parent 0204730af7
commit 1ff95751de
3 changed files with 8 additions and 2 deletions

View File

@@ -8,6 +8,12 @@
2008-12-31 13:59 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2008-07-30 15:39 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/compiler/harbour.y
* harbour/source/compiler/harbour.yyc
! fixed wrongly hidden error message - it was causing memory leak
Thanks to Roberto for information.
2008-07-30 11:18 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* doc/dirstruc.txt
* Some (incomplete) updates to the dir structure layout.

View File

@@ -2823,7 +2823,7 @@ void yyerror( HB_COMP_DECL, char * s )
{
if( !HB_COMP_PARAM->pLex->lasttok || HB_COMP_PARAM->pLex->lasttok[ 0 ] == '\n' )
{
if( ! hb_pp_eof( HB_COMP_PARAM->pLex->pPP ) )
if( HB_COMP_PARAM->iErrorCount == 0 || !hb_pp_eof( HB_COMP_PARAM->pLex->pPP ) )
hb_compGenError( HB_COMP_PARAM, hb_comp_szErrors, 'E', HB_COMP_ERR_INCOMPLETE_STMT, NULL, NULL );
}
else

View File

@@ -8160,7 +8160,7 @@ void yyerror( HB_COMP_DECL, char * s )
{
if( !HB_COMP_PARAM->pLex->lasttok || HB_COMP_PARAM->pLex->lasttok[ 0 ] == '\n' )
{
if( ! hb_pp_eof( HB_COMP_PARAM->pLex->pPP ) )
if( HB_COMP_PARAM->iErrorCount == 0 || !hb_pp_eof( HB_COMP_PARAM->pLex->pPP ) )
hb_compGenError( HB_COMP_PARAM, hb_comp_szErrors, 'E', HB_COMP_ERR_INCOMPLETE_STMT, NULL, NULL );
}
else