summaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-28 21:13:35 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-28 21:13:35 +0000
commit9751c00e176f73ca4a921e9b9b15486d875da475 (patch)
treee48c58ce615d53fe8e02183447bad8c0843a2462 /gcc/c-lang.c
parentf23abae55e71b922f87e25034768ad92d2cefcff (diff)
downloadgcc-9751c00e176f73ca4a921e9b9b15486d875da475.tar.gz
* c-lex.h (parse_in): Change parse_in to a cpp_reader *.
* c-decl.c (c_decode_option): Update to match. * c-lex.c (init_c_lex, yyparse): Update to match. * c-lang.c (lang_init_options): Use cpp_create_reader. * cppinit.c (cpp_init): Rename initialize. (cpp_reader_init): Rename cpp_create_reader. Create the reader. Initialize cpplib if appropriate. * cpplib.h (cpp_create_reader) New prototype. (cpp_init, cpp_reader_init): Delete prototypes. * cppmain.c (general_init, setup_callbacks): New functions. (main): Use them. * fix-header.c (scan_in): Change type to cpp_reader *. (read_scan_file): Update for new cpplib interface and scan_in type. * cp/decl.c (parse_in): Change to cpp_reader *. (lang_decode_option): Update. * cp/lex.c (lang_init_options): Use new cpplib interface. (init_cp_pragma, finish_parse, handle_pragma_implementation): Update. * cp/spew.c (read_token): Update. * objc/objc-act.c (lang_init_options): Update new cpplib interface. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37826 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index bec4ccf95c7..fb4dbee6116 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -52,8 +52,7 @@ lang_decode_option (argc, argv)
void
lang_init_options ()
{
- cpp_init ();
- cpp_reader_init (&parse_in, CLK_GNUC89);
+ parse_in = cpp_create_reader (CLK_GNUC89);
/* Mark as "unspecified". */
flag_bounds_check = -1;