* cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.

From-SVN: r65954
This commit is contained in:
Neil Booth 2003-04-22 19:54:20 +00:00
parent df1b07f3b9
commit b78f9414c6
2 changed files with 11 additions and 7 deletions

View File

@ -1,7 +1,11 @@
2003-04-22 Neil Booth <neil@daikokuya.co.uk>
* cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
2003-04-22 Devang Patel <dpatel@apple.com>
* cpptrad.c (_cpp_replacement_text_len): Add check for macro parameter count.
* cpptrad.c (_cpp_replacement_text_len): Add check for macro
parameter count.
(_cpp_copy_replacement_text): Same.
2003-04-22 Neil Booth <neil@daikokuya.co.uk>

View File

@ -714,15 +714,15 @@ _cpp_get_fresh_line (pfile)
"no newline at end of file");
}
if (buffer->return_at_eof)
{
buffer->return_at_eof = false;
return false;
}
if (!buffer->prev)
return false;
if (buffer->return_at_eof)
{
_cpp_pop_buffer (pfile);
return false;
}
_cpp_pop_buffer (pfile);
}
}