diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-21 15:57:51 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-21 15:57:51 +0000 |
commit | 108ed0fbfc597f8548880f11ed8c0d5c46ed7557 (patch) | |
tree | 7c7e63abe1ff8a2d9797fc58544a1e41ad0c12f2 /gcc/cpplex.c | |
parent | df731bb1601a1b1aaf9eae3ca375abbe6a086665 (diff) | |
download | gcc-108ed0fbfc597f8548880f11ed8c0d5c46ed7557.tar.gz |
* cppfiles.c (stack_file): Correctly pass return_at_eof parameter
to cpp_push_buffer.
* cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
by return_at_eof check. Always call _cpp_pop_buffer at end.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70646 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index c3ef88dc060..1c00bdd0c8e 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -719,9 +719,6 @@ _cpp_get_fresh_line (cpp_reader *pfile) "no newline at end of file"); } - if (!buffer->prev) - return false; - if (buffer->return_at_eof) { _cpp_pop_buffer (pfile); |