diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-20 16:46:18 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-20 16:46:18 +0000 |
commit | 568139e45314dddea8e1d218ea3d61b1235a5b8d (patch) | |
tree | cff696dfa377a0cf3e735f28e287645b12baeba7 /gcc/cppfiles.c | |
parent | e9f0d687a15f6a1864fdf1a3773486e376417233 (diff) | |
download | ppe42-gcc-568139e45314dddea8e1d218ea3d61b1235a5b8d.tar.gz ppe42-gcc-568139e45314dddea8e1d218ea3d61b1235a5b8d.zip |
Various cleanups to help compile server.
* cppinit.c (cpp_create_reader): Take extra hash_table* argument,
and pass that to _cpp_init_hashtable.
(cpp_read_main_file): Drop hash_table* argument; don't call
_cpp_init_hashtable.
* cpplib.h: Update declarations to match.
* c-opts.c (c_common_init_options): Pass ident_hash to
cpp_create_reader.
(c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
* fix-header.c (read_scan_file): Likewise pass NULL table to
cpp_create_reader rather than cpp_read_main_file.
* cppfiles.c (cpp_rename_file): Generalized and renamed
to cpp_change_file.
* cpplib.h: Update declaration to match.
* c-opts.c (push_command_line_line, finish_options): Change
cpp_rename_file calls to cpp_change_file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64617 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 9bcdb9edb5d..1ff34ff0084 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -756,14 +756,16 @@ cpp_make_system_header (pfile, syshdr, externc) SOURCE_LINE (pfile->map, pfile->line), flags); } -/* Allow the client to rename the current file. Used by the front end - to achieve pseudo-file names like <built-in>. */ +/* Allow the client to change the current file. Used by the front end + to achieve pseudo-file names like <built-in>. + If REASON is LC_LEAVE, then NEW_NAME must be NULL. */ void -cpp_rename_file (pfile, new_name) +cpp_change_file (pfile, reason, new_name) cpp_reader *pfile; + enum lc_reason reason; const char *new_name; { - _cpp_do_file_change (pfile, LC_RENAME, new_name, 1, 0); + _cpp_do_file_change (pfile, reason, new_name, 1, 0); } /* Report on all files that might benefit from a multiple include guard. |