OSDN Git Service

* cppinit.c (cpp_read_main_file): Split into two functions:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Oct 2003 07:23:27 +0000 (07:23 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 2 Oct 2003 07:23:27 +0000 (07:23 +0000)
commit643868343396410b69fabc608598ef263a8f0b64
treed42ac396e3c05ffb67c9335d47f0193aefee767b
parent11b5269c49d5849aa9909a0147b38cc8d44d7d90
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72014 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cppfiles.c
gcc/cpphash.h
gcc/cppinit.c
gcc/cpplib.h
gcc/fix-header.c