diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-01-10 07:51:11 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-10 07:51:11 +0000 |
commit | ee811cfdfaa9b3dee676e33fcf5853864255a04a (patch) | |
tree | 9722a0d53a90eb7c3efcda64249217ac59a4b20b /gcc/cp/lex.c | |
parent | 8541c24be9cdf2943f93bea51a3227647978556c (diff) | |
download | gcc-ee811cfdfaa9b3dee676e33fcf5853864255a04a.zip gcc-ee811cfdfaa9b3dee676e33fcf5853864255a04a.tar.gz gcc-ee811cfdfaa9b3dee676e33fcf5853864255a04a.tar.bz2 |
c-lang.c (lang_hooks): Update.
* c-lang.c (lang_hooks): Update.
(lang_decode_option): Remove.
(lang_init_options): Rename c_init_options.
* toplev.c (main): Use lang_hooks for lang_init_options
and lang_decode_option.
* toplev.h (lang_hooks): Add 2 new hooks.
* tree.h: Remove lang_init_options and lang_decode_option.
* cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option.
* cp/decl2.c: Similarly.
* cp/lex.c (lang_init_options): Rename cxx_init_options.
(lang_hooks): Update.
* f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish
for consistency.
(lang_init_options): Rename ffe_init_options.
(lang_hooks): Update.
(lang_decode_option): Remove.
* java/lang.c (lang_init_options): Rename java_init_options.
(lang_decode_option): Rename java_decode_option.
(lang_hooks): Update.
* objc/objc-act.c (lang_init_options): Rename objc_init_options.
(lang_decode_option): Rename objc_decode_option.
(lang_hooks): Update.
From-SVN: r38856
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 3203b4c..f295e7c 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -63,6 +63,7 @@ static void handle_pragma_interface PARAMS ((cpp_reader *)); static void handle_pragma_implementation PARAMS ((cpp_reader *)); static void cxx_init PARAMS ((void)); static void cxx_finish PARAMS ((void)); +static void cxx_init_options PARAMS ((void)); static void cxx_post_options PARAMS ((void)); #ifdef GATHER_STATISTICS @@ -246,6 +247,8 @@ static const char *cplus_tree_code_name[] = { /* Each front end provides its own hooks, for toplev.c. */ struct lang_hooks lang_hooks = {cxx_init, cxx_finish, + cxx_init_options, + cxx_decode_option, cxx_post_options}; /* Post-switch processing. */ @@ -255,8 +258,8 @@ cxx_post_options () cpp_post_options (parse_in); } -void -lang_init_options () +static void +cxx_init_options () { parse_in = cpp_create_reader (CLK_GNUCXX); |