Module: wine Branch: master Commit: 1d9bb50230edd3c8cfdeb6c763aaaf5655d24aa4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1d9bb50230edd3c8cfdeb6c763...
Author: Józef Kucia joseph.kucia@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)