mirror of git://gcc.gnu.org/git/gcc.git
* cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
From-SVN: r65954
This commit is contained in:
parent
df1b07f3b9
commit
b78f9414c6
|
|
@ -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>
|
||||
|
|
|
|||
12
gcc/cpplex.c
12
gcc/cpplex.c
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue