aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorPer Bothner <pbothner@apple.com>2003-08-09 22:14:07 +0000
committerPer Bothner <bothner@gcc.gnu.org>2003-08-09 15:14:07 -0700
commit4169c321d07546a66be69a0d4c448862c971d640 (patch)
tree128dea28dd9ac999f2887671bb6668d7a150269c /gcc/cppfiles.c
parent3d93cdfa884d3308eabaafa46e7bfda27c2234b8 (diff)
downloadgcc-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/cppfiles.c')
-rw-r--r--gcc/cppfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 4c3608b..22e9524 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -696,7 +696,7 @@ dir_name_of_file (_cpp_file *file)
/* Push an input buffer with the contents of FNAME, the empty string
for standard input. Return true if a buffer was stacked. */
bool
-cpp_stack_file (cpp_reader *pfile, const char *fname)
+_cpp_stack_file (cpp_reader *pfile, const char *fname)
{
struct cpp_dir *dir = &pfile->no_search_path;