From 13c61421ff315b27bb41e6ac8ccacdebab9d8247 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Tue, 9 Jan 2001 10:54:01 +0000 Subject: c-lang.c (lang_hooks): Update. * c-lang.c (lang_hooks): Update. (lang_init): Rename c_init. (lang_finish): Remove. * toplev.c (compile_file): Use lang_hooks for lang_init () and lang_finish (). * toplev.h (lang_hooks): Add init () and finish (). * tree.h (lang_init, lang_finish): Remove. * cp/tree.h (lang_init, lang_finish): Remove. * cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c. * cp/lex.c (cxx_init, cxx_finish, cxx_post_options, lang_hooks): New. (lang_init, lang_finish): Remove. * f/com.c (lang_init, lang_finish): Rename f_init, f_finish. (lang_hooks): Update. * java/lang.c (lang_init): Rename java_init. (lang_finish): Remove. (lang_hooks): Update. * objc/objc-act.c (lang_init): Rename objc_init. (lang_finish): Remove. (lang_hoooks): Update. From-SVN: r38828 --- gcc/objc/objc-act.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'gcc/objc/objc-act.c') diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index e2daab1..b70c3e6 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -149,6 +149,7 @@ char *util_firstobj; static void init_objc PARAMS ((void)); static void finish_objc PARAMS ((void)); static void objc_post_options PARAMS ((void)); +static void objc_init PARAMS ((void)); /* Code generation. */ @@ -628,7 +629,9 @@ static int generating_instance_variables = 0; static int print_struct_values = 0; /* Each front end provides its own. */ -struct lang_hooks lang_hooks = {objc_post_options}; +struct lang_hooks lang_hooks = {objc_init, + NULL, /* objc_finish */ + objc_post_options}; /* Post-switch processing. */ static void @@ -707,8 +710,8 @@ lang_init_options () c_language = clk_objective_c; } -void -lang_init () +static void +objc_init () { /* Force the line number back to 0; check_newline will have raised it to 1, which will make the builtin functions appear @@ -765,11 +768,6 @@ finish_file () fclose (gen_declaration_file); } -void -lang_finish () -{ -} - const char * lang_identify () { -- cgit v1.1