]> gcc.gnu.org Git - gcc.git/commit - gcc/fix-header.c
cppinit.c (cpp_read_main_file): Split into two functions: Distribute _cpp_stack_file...
authorPer Bothner <pbothner@apple.com>
Thu, 2 Oct 2003 07:23:27 +0000 (07:23 +0000)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 2 Oct 2003 07:23:27 +0000 (00:23 -0700)
commit4dc299fbbed1b96ca647123280ffd3874666460b
treed42ac396e3c05ffb67c9335d47f0193aefee767b
parenta506c55cb1000de54bb5a2907e10f31113c46133
cppinit.c (cpp_read_main_file): Split into two functions: Distribute _cpp_stack_file call over the two functions.

* cppinit.c (cpp_read_main_file):  Split into two functions:
Distribute _cpp_stack_file call over the two functions.
(cpp_find_main_file):  New function.
Don't call _cpp_do_file_change even if working_directory flag set.
(cpp_push_main_file):  New function.
* cppfiles.c (_cpp_find_failed):  New helper function.
(find_file):  Made non-static and renamed to _cpp_find_file.
(_cpp_stack_file):  No longer needed.  But note the following.
(stack_file):  Made non-static and renamed to _cpp_stack_file.
* fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
call with calls to cpp_find_main_file and cpp_push_main_file.
(search_path_head):  If there is no current buffer, use main_file.
* cpphash.h:  Update function declarations.
* cpplib.h:  Update function declarations.

From-SVN: r72014
gcc/ChangeLog
gcc/cppfiles.c
gcc/cpphash.h
gcc/cppinit.c
gcc/cpplib.h
gcc/fix-header.c
This page took 0.052389 seconds and 5 git commands to generate.