=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wpp: Reset lexer state after unexpected end of file.

Alexandre Julliard julliard at winehq.org
Mon Mar 12 11:59:55 CDT 2012


Module: wine
Branch: master
Commit: 1d9bb50230edd3c8cfdeb6c763aaaf5655d24aa4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1d9bb50230edd3c8cfdeb6c763aaaf5655d24aa4

Author: Józef Kucia <joseph.kucia at gmail.com>
Date:   Sat Mar 10 19:58:43 2012 +0100

wpp: Reset lexer state after unexpected end of file.

---

 libs/wpp/ppl.l |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libs/wpp/ppl.l b/libs/wpp/ppl.l
index 2718fd0..8d979dc 100644
--- a/libs/wpp/ppl.l
+++ b/libs/wpp/ppl.l
@@ -774,7 +774,10 @@ void pp_writestring(const char *format, ...)
 		if(!bep)
 		{
 			if(YY_START != INITIAL)
+			{
 				ppy_error("Unexpected end of file during preprocessing");
+				BEGIN(INITIAL);
+			}
 			yyterminate();
 		}
 		else if(bep->should_pop == 2)




More information about the wine-cvs mailing list