diff options
author | Neil Booth <neil@gcc.gnu.org> | 2003-04-22 19:54:20 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-04-22 19:54:20 +0000 |
commit | b78f9414c6db8d7c9c0ed3466a2a75bc1a7d215c (patch) | |
tree | 7bf84c6ed4df35b57cf6cf0234502922993a58db /gcc/cpplex.c | |
parent | df1b07f3b958638590d3a49c8df6d49443369952 (diff) | |
download | gcc-b78f9414c6db8d7c9c0ed3466a2a75bc1a7d215c.zip gcc-b78f9414c6db8d7c9c0ed3466a2a75bc1a7d215c.tar.gz gcc-b78f9414c6db8d7c9c0ed3466a2a75bc1a7d215c.tar.bz2 |
* cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
From-SVN: r65954
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 552a406..d6c617d3 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -714,15 +714,15 @@ _cpp_get_fresh_line (pfile) "no newline at end of file"); } + if (!buffer->prev) + return false; + if (buffer->return_at_eof) { - buffer->return_at_eof = false; + _cpp_pop_buffer (pfile); return false; } - if (!buffer->prev) - return false; - _cpp_pop_buffer (pfile); } } |