diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-28 21:13:35 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-28 21:13:35 +0000 |
commit | cf44ea523133ce4e91d097471bad44232c550a55 (patch) | |
tree | e48c58ce615d53fe8e02183447bad8c0843a2462 /gcc/objc | |
parent | 74d2f859d248c7181a01a6d54bd45a27ce22ae21 (diff) | |
download | gcc-cf44ea523133ce4e91d097471bad44232c550a55.zip gcc-cf44ea523133ce4e91d097471bad44232c550a55.tar.gz gcc-cf44ea523133ce4e91d097471bad44232c550a55.tar.bz2 |
c-lex.h (parse_in): Change parse_in to a cpp_reader *.
* 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.
From-SVN: r37826
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 2eff6e7..e15ddd0 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -56,7 +56,6 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "ggc.h" #include "cpplib.h" -extern cpp_reader parse_in; /* This is the default way of generating a method name. */ /* I am not sure it is really correct. @@ -695,8 +694,7 @@ generate_struct_by_value_array () void lang_init_options () { - cpp_init (); - cpp_reader_init (&parse_in, CLK_GNUC89); + parse_in = cpp_create_reader (CLK_GNUC89); } void |