From 8a1a524a83587e22c1a69e8ef7aec1c449902605 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Wed, 9 Dec 1998 07:47:51 -0500 Subject: [PATCH] objc-act.c (cpp_initialized): Removed. Wed Dec 9 15:29:26 1998 Dave Brolley * objc/objc-act.c (cpp_initialized): Removed. (lang_init_options): Initialize cpplib. (lang_decode_option): Move initialization of cpplib to lang_init_options. From-SVN: r24220 --- gcc/objc/objc-act.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index d064da3..2f6c7b0 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -55,7 +55,6 @@ Boston, MA 02111-1307, USA. */ #include "cpplib.h" extern cpp_reader parse_in; extern cpp_options parse_options; -static int cpp_initialized; #endif /* This is the default way of generating a method name. */ @@ -599,6 +598,9 @@ extern char *yy_cur; void lang_init_options () { + cpp_reader_init (&parse_in); + parse_in.opts = &parse_options; + cpp_options_init (&parse_options); } void @@ -690,15 +692,6 @@ lang_decode_option (argc, argv) char **argv; { char *p = argv[0]; -#if USE_CPPLIB - if (! cpp_initialized) - { - cpp_reader_init (&parse_in); - parse_in.opts = &parse_options; - cpp_options_init (&parse_options); - cpp_initialized = 1; - } -#endif if (!strcmp (p, "-lang-objc")) doing_objc_thang = 1; else if (!strcmp (p, "-gen-decls")) -- 2.7.4