From 7251c0af50e9fff28ce2c4a467bd5f4659e29b52 Mon Sep 17 00:00:00 2001 From: "David G. Holm" Date: Fri, 25 Jun 1999 02:19:30 +0000 Subject: [PATCH] See ChangeLog entry 19990624-21:10 EDT David G. Holm --- harbour/ChangeLog | 6 ++++++ harbour/source/compiler/harbour.l | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 8c93e4dbc4..7c6e235f15 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +19990624-21:10 EDT David G. Holm + * source/compiler/harbour.l + - Corrected logic in if block that prints spurious error message when + using END with a DO or WHILE to actually check the while counter + - Changed from printf() error message to GenError( ERR_ENDIF ) + 19990625-01:05 CET Victor Szel * include/extend.h include/dates.h diff --git a/harbour/source/compiler/harbour.l b/harbour/source/compiler/harbour.l index 9f459a7f44..1ea8fecc81 100644 --- a/harbour/source/compiler/harbour.l +++ b/harbour/source/compiler/harbour.l @@ -414,7 +414,7 @@ Separator {SpaceTab} } "end" { /* END can be used in one context only */ if( _wIfCounter == 0 && _wCaseCounter == 0 && _wCaseCounter == 0 ) - printf( "END without an IF / CASE /or WHILE" ); + GenError( ERR_ENDIF, NULL, NULL ); return END; } %{