See ChangeLog 19990518-03:05

This commit is contained in:
Ryszard Glab
1999-05-18 02:08:10 +00:00
parent 1c40a309b6
commit d760c43c3a
3 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
19990518-03:05 Ryszard Glab <rglab@imid.med.pl>
* source/compiler/harbour.l
-corrected misspelled wCaseCounter
* include/hberrors.h
-new errors definition added (it should be uploaded in previous
commit -sorry my fault
19990518-01:45 Ryszard Glab <rglab@imid.med.pl>
* source/compiler/harbour.l, source/compiler/harbour.y

View File

@@ -17,6 +17,9 @@
#define ERR_ENDDO 12
#define ERR_ENDCASE 13
#define ERR_NEXTFOR 14
#define ERR_SYNTAX 15
#define ERR_UNMATCHED_ELSE 15
#define ERR_UNMATCHED_ELSEIF 16
#define ERR_SYNTAX 17
#define ERR_UNCLOSED_STRU 18
void GenError( int, char*, char * ); /* generic parsing error management function */

View File

@@ -369,7 +369,7 @@ Separator {SpaceTab}|{Comment}|{LineCont}
return ENDIF;
}
"endc"("ase"|"as"|"a")? { /* ENDCASE can be used in one context only */
if( _wWhileCounter == 0 )
if( _wCaseCounter == 0 )
GenError( ERR_ENDCASE, NULL, NULL );
return ENDCASE;
}