Commit 8a1a524a by Dave Brolley

objc-act.c (cpp_initialized): Removed.

Wed Dec  9 15:29:26 1998  Dave Brolley  <brolley@cygnus.com>
	* 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
parent 5d7da2c6
...@@ -55,7 +55,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -55,7 +55,6 @@ Boston, MA 02111-1307, USA. */
#include "cpplib.h" #include "cpplib.h"
extern cpp_reader parse_in; extern cpp_reader parse_in;
extern cpp_options parse_options; extern cpp_options parse_options;
static int cpp_initialized;
#endif #endif
/* This is the default way of generating a method name. */ /* This is the default way of generating a method name. */
...@@ -599,6 +598,9 @@ extern char *yy_cur; ...@@ -599,6 +598,9 @@ extern char *yy_cur;
void void
lang_init_options () lang_init_options ()
{ {
cpp_reader_init (&parse_in);
parse_in.opts = &parse_options;
cpp_options_init (&parse_options);
} }
void void
...@@ -690,15 +692,6 @@ lang_decode_option (argc, argv) ...@@ -690,15 +692,6 @@ lang_decode_option (argc, argv)
char **argv; char **argv;
{ {
char *p = argv[0]; 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")) if (!strcmp (p, "-lang-objc"))
doing_objc_thang = 1; doing_objc_thang = 1;
else if (!strcmp (p, "-gen-decls")) else if (!strcmp (p, "-gen-decls"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment