aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-10 07:51:11 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-10 07:51:11 +0000
commitee811cfdfaa9b3dee676e33fcf5853864255a04a (patch)
tree9722a0d53a90eb7c3efcda64249217ac59a4b20b /gcc/objc
parent8541c24be9cdf2943f93bea51a3227647978556c (diff)
downloadgcc-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/objc')
-rw-r--r--gcc/objc/objc-act.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index b70c3e6..12af8f9 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -148,8 +148,10 @@ 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));
+static void objc_init_options PARAMS ((void));
+static int objc_decode_option PARAMS ((int, char **));
+static void objc_post_options PARAMS ((void));
/* Code generation. */
@@ -631,6 +633,8 @@ static int print_struct_values = 0;
/* Each front end provides its own. */
struct lang_hooks lang_hooks = {objc_init,
NULL, /* objc_finish */
+ objc_init_options,
+ objc_decode_option,
objc_post_options};
/* Post-switch processing. */
@@ -703,8 +707,8 @@ generate_struct_by_value_array ()
exit (0);
}
-void
-lang_init_options ()
+static void
+objc_init_options ()
{
parse_in = cpp_create_reader (CLK_OBJC);
c_language = clk_objective_c;
@@ -774,8 +778,8 @@ lang_identify ()
return "objc";
}
-int
-lang_decode_option (argc, argv)
+static int
+objc_decode_option (argc, argv)
int argc;
char **argv;
{