summaryrefslogtreecommitdiffstats
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-02 07:30:34 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-02 07:30:34 +0000
commit9eb7466604c607c9d8d79ae4534438c1d9d7546b (patch)
treec20dbb16aaad4d46e1efbbdb072fa9eb2e5cb387 /gcc/cppmacro.c
parente2df3e75379da18409c584c2efb2064c282330de (diff)
downloadppe42-gcc-9eb7466604c607c9d8d79ae4534438c1d9d7546b.tar.gz
ppe42-gcc-9eb7466604c607c9d8d79ae4534438c1d9d7546b.zip
* cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
callback even when popping the main file. * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof, remove the unused return_at_eof parameter. * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c: Update callers of cpp_push_buffer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72016 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index 045d4e37185..43f688ab7a0 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -270,7 +270,7 @@ builtin_macro (cpp_reader *pfile, cpp_hashnode *node)
memcpy (nbuf, buf, len);
nbuf[len]='\n';
- cpp_push_buffer (pfile, (uchar *) nbuf, len, /* from_stage3 */ true, 1);
+ cpp_push_buffer (pfile, (uchar *) nbuf, len, /* from_stage3 */ true);
_cpp_clean_line (pfile);
/* Set pfile->cur_token as required by _cpp_lex_direct. */
@@ -426,7 +426,7 @@ paste_tokens (cpp_reader *pfile, const cpp_token **plhs, const cpp_token *rhs)
end = cpp_spell_token (pfile, rhs, end);
*end = '\n';
- cpp_push_buffer (pfile, buf, end - buf, /* from_stage3 */ true, 1);
+ cpp_push_buffer (pfile, buf, end - buf, /* from_stage3 */ true);
_cpp_clean_line (pfile);
/* Set pfile->cur_token as required by _cpp_lex_direct. */
@@ -1136,10 +1136,6 @@ cpp_sys_macro_p (cpp_reader *pfile)
void
cpp_scan_nooutput (cpp_reader *pfile)
{
- /* Request a CPP_EOF token at the end of this file, rather than
- transparently continuing with the including file. */
- pfile->buffer->return_at_eof = true;
-
if (CPP_OPTION (pfile, traditional))
while (_cpp_read_logical_line_trad (pfile))
;
OpenPOWER on IntegriCloud