wpp: Reset lexer state after unexpected end of file.

This commit is contained in:
Józef Kucia 2012-03-10 19:58:43 +01:00 committed by Alexandre Julliard
parent 2c5a7743be
commit 1d9bb50230

View File

@ -774,7 +774,10 @@ void pp_writestring(const char *format, ...)
if(!bep) if(!bep)
{ {
if(YY_START != INITIAL) if(YY_START != INITIAL)
{
ppy_error("Unexpected end of file during preprocessing"); ppy_error("Unexpected end of file during preprocessing");
BEGIN(INITIAL);
}
yyterminate(); yyterminate();
} }
else if(bep->should_pop == 2) else if(bep->should_pop == 2)