cpplex.c (_cpp_lex_direct): When in a directive at EOF fake a newline.
* cpplex.c (_cpp_lex_direct): When in a directive at EOF fake a newline. From-SVN: r53386
This commit is contained in:
parent
e1a0f69c8f
commit
387f9e323b
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
* cpplex.c (_cpp_lex_direct): When in a directive at EOF
|
||||
fake a newline.
|
||||
|
||||
2002-05-11 Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* config/rs6000/rs6000.c (rs6000_default_long_calls,
|
||||
|
|
|
@ -930,7 +930,7 @@ _cpp_lex_direct (pfile)
|
|||
/* EOF. */
|
||||
buffer->cur--;
|
||||
buffer->saved_flags = BOL;
|
||||
if (!pfile->state.parsing_args && !pfile->state.in_directive)
|
||||
if (!pfile->state.parsing_args)
|
||||
{
|
||||
if (buffer->cur != buffer->line_base)
|
||||
{
|
||||
|
@ -942,7 +942,7 @@ _cpp_lex_direct (pfile)
|
|||
}
|
||||
|
||||
/* Don't pop the last buffer. */
|
||||
if (buffer->prev)
|
||||
if (!pfile->state.in_directive && buffer->prev)
|
||||
{
|
||||
unsigned char stop = buffer->return_at_eof;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue