diff options
author | Per Bothner <pbothner@apple.com> | 2003-08-09 22:14:07 +0000 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2003-08-09 15:14:07 -0700 |
commit | 4169c321d07546a66be69a0d4c448862c971d640 (patch) | |
tree | 128dea28dd9ac999f2887671bb6668d7a150269c /gcc/cpplib.h | |
parent | 3d93cdfa884d3308eabaafa46e7bfda27c2234b8 (diff) | |
download | gcc-4169c321d07546a66be69a0d4c448862c971d640.zip gcc-4169c321d07546a66be69a0d4c448862c971d640.tar.gz gcc-4169c321d07546a66be69a0d4c448862c971d640.tar.bz2 |
cppinit.c (cpp_read_main_file): Split out source-independent initialization to separate function ...
* cppinit.c (cpp_read_main_file): Split out source-independent
initialization to separate function ...
(cpp_post_options): New function.
* cppfiles.c (cpp_stack_file): Rename public name to ...
(_cpp_stack_file): New internal function name.
* cpplib.h: Update accordingly.
* cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
(cpp_read_main_file): Don't initialize line here.
* c-opts.c (c_common_post_options): Call cpp_post_options.
(c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
* fix-header.c (read_scan_file): Call cpp_post_options.
From-SVN: r70279
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 57fc0b1..b6f58a9 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -533,13 +533,13 @@ extern void cpp_set_callbacks (cpp_reader *, cpp_callbacks *); too. If there was an error opening the file, it returns NULL. */ extern const char *cpp_read_main_file (cpp_reader *, const char *); -/* Stacks a new file. It will return false if there was an error - opening the file. */ -extern bool cpp_stack_file (cpp_reader *, const char *); - /* Set up built-ins like __FILE__. */ extern void cpp_init_builtins (cpp_reader *, int); +/* This is called after options have been parsed, and partially + processed. */ +extern void cpp_post_options (cpp_reader *); + /* Set up translation to the target character set. */ extern void cpp_init_iconv (cpp_reader *); |