[1/2] wpp: Reset lexer state after unexpected end of file.

Józef Kucia joseph.kucia at gmail.com
Sat Mar 10 12:58:43 CST 2012


---
 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)
--
1.7.8.5




More information about the wine-patches mailing list