Commit 9ff7868d by Neil Booth

Revert cpplex.c change

From-SVN: r66118
parent b70db50a
...@@ -776,6 +776,12 @@ _cpp_lex_direct (pfile) ...@@ -776,6 +776,12 @@ _cpp_lex_direct (pfile)
if (!_cpp_get_fresh_line (pfile)) if (!_cpp_get_fresh_line (pfile))
{ {
result->type = CPP_EOF; result->type = CPP_EOF;
if (!pfile->state.in_directive)
{
/* Tell the compiler the line number of the EOF token. */
result->line = pfile->line;
result->flags = BOL;
}
return result; return result;
} }
if (!pfile->keep_tokens) if (!pfile->keep_tokens)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment