ChangeLog 20000514-14:55 GMT+1

This commit is contained in:
Ryszard Glab
2000-05-14 12:47:34 +00:00
parent e692ba8959
commit aaf0d2c062
2 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
20000514-14:55 GMT+1 Ryszard Glab <rglab@imid.med.pl>
*source/compiler/harbour.y
* fixed bug in line counting that was causing no code
generated for statements placed within BEGIN/END SEQUENCE
20000513-14:50 GMT+1 Ryszard Glab <rglab@imid.med.pl>
*include/hbcomp.h

View File

@@ -1191,12 +1191,12 @@ IfEndif : IfBegin EndIf { hb_compGenJumpHere( $1 ); }
| IfBegin IfElseIf IfElse EndIf { hb_compGenJumpHere( $1 ); hb_compElseIfFix( $2 ); }
;
EmptyStatements : LineStat { }
| EmptyStatements { hb_compLinePush(); } LineStat { }
EmptyStatements : LineStat { $<lNumber>$ = $<lNumber>1; }
| EmptyStatements { hb_compLinePush(); } LineStat { $<lNumber>$ += $<lNumber>3; }
;
EmptyStats : /* empty */ { hb_comp_bDontGenLineNum = TRUE; hb_comp_EOL = FALSE; }
| EmptyStatements { hb_comp_EOL = FALSE; }
EmptyStats : /* empty */ { hb_comp_bDontGenLineNum = TRUE; hb_comp_EOL = FALSE; $<lNumber>$ = 0; }
| EmptyStatements { hb_comp_EOL = FALSE; $<lNumber>$ = $<lNumber>1; }
;
IfBegin : IF SimpleExpression { ++hb_comp_wIfCounter; hb_compLinePush(); } Crlf { hb_compExprDelete( hb_compExprGenPush( $2 ) ); $$ = hb_compGenJumpFalse( 0 ); hb_compLinePush(); }