diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-11 21:02:34 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-11 21:02:34 +0000 |
commit | 4eed76a627c88a9e29a110510087ef5d65099b98 (patch) | |
tree | a8d85fe940ad3bc6aecad76f5620ba2746144cb2 /gcc/cpplex.c | |
parent | 6d01451bd192638d8c66553c7aee9b71769b6bea (diff) | |
download | gcc-4eed76a627c88a9e29a110510087ef5d65099b98.tar.gz |
* cpplex.c (_cpp_lex_direct): When in a directive at EOF
fake a newline.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53386 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index bba6f074730..f2d07963f79 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -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; |