aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-10 07:51:11 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-10 07:51:11 +0000
commite486a83548e34c85257d3cbe2ecf5394c95e5036 (patch)
tree9722a0d53a90eb7c3efcda64249217ac59a4b20b /gcc/c-lang.c
parentad33b2bc6d5c69c14b2023a22171a90b8134705f (diff)
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38856 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index f8cefb36490..dfd772fdbf5 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -39,11 +39,14 @@ Boston, MA 02111-1307, USA. */
static int c_tree_printer PARAMS ((output_buffer *));
static int c_missing_noreturn_ok_p PARAMS ((tree));
static void c_init PARAMS ((void));
+static void c_init_options PARAMS ((void));
static void c_post_options PARAMS ((void));
/* Each front end provides its own. */
struct lang_hooks lang_hooks = {c_init,
NULL, /* c_finish */
+ c_init_options,
+ c_decode_option,
c_post_options};
/* Post-switch processing. */
@@ -53,18 +56,8 @@ c_post_options ()
cpp_post_options (parse_in);
}
-/* Each of the functions defined here
- is an alternative to a function in objc-actions.c. */
-int
-lang_decode_option (argc, argv)
- int argc;
- char **argv;
-{
- return c_decode_option (argc, argv);
-}
-
-void
-lang_init_options ()
+static void
+c_init_options ()
{
parse_in = cpp_create_reader (CLK_GNUC89);