diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-22 17:48:02 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-22 17:48:02 +0000 |
commit | 02516fb963e11f14d14af2872cd6cc89f31a4050 (patch) | |
tree | 0fc130b06a7d9e6cdc2502aaa5f671bb726c8773 /gcc/cppfiles.c | |
parent | 4c068d0799c7b8e0f3f6735e49eb58e481981a44 (diff) | |
download | ppe42-gcc-02516fb963e11f14d14af2872cd6cc89f31a4050.tar.gz ppe42-gcc-02516fb963e11f14d14af2872cd6cc89f31a4050.zip |
* cppfiles.c (_cpp_pop_file_buffer): Return void. Move
file change and include code to _cpp_pop_buffer.
* cpphash.h (struct pending_option): Predeclare.
(struct cpp_reader): New member next_include_file.
(_cpp_pop_file_buffer): Update.
(_cpp_push_next_buffer): Update, rename.
* cppinit.c (cpp_destroy): Free include chain and pending here.
(cpp_finish_options): Simplify.
(_cpp_push_next_buffer): Rename and clean up.
* cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
Clarify.
* cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 38780ad24a1..7600523b009 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -761,14 +761,12 @@ _cpp_read_file (pfile, fname) } /* Do appropriate cleanup when a file INC's buffer is popped off the - input stack. Push the next -include file, if any remain. */ -bool + input stack. */ +void _cpp_pop_file_buffer (pfile, inc) cpp_reader *pfile; struct include_file *inc; { - bool pushed = false; - /* Record the inclusion-preventing macro, which could be NULL meaning no controlling macro. */ if (pfile->mi_valid && inc->cmacro == NULL) @@ -780,18 +778,6 @@ _cpp_pop_file_buffer (pfile, inc) inc->refcnt--; if (inc->refcnt == 0 && DO_NOT_REREAD (inc)) purge_cache (inc); - - /* Don't generate a callback for popping the main file. */ - if (pfile->buffer) - { - _cpp_do_file_change (pfile, LC_LEAVE, 0, 0, 0); - - /* Finally, push the next -included file, if any. */ - if (!pfile->buffer->prev) - pushed = _cpp_push_next_buffer (pfile); - } - - return pushed; } /* Returns the first place in the include chain to start searching for |