+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.
+ * c-lang.c: (parse_options,parse_in): Added.
+ (lang_init_options): Initialized cpplib here.
+ * c-decl.c (parse_options,cpp_initialized): Removed.
+ (c_decode_option): Move initialization of cpplib to
+ lang_init_options.
+
Wed Dec 9 19:36:57 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* reload1.c (reload_combine, reload_combine_note_store):
#if USE_CPPLIB
#include "cpplib.h"
-extern cpp_reader parse_in;
-extern cpp_options parse_options;
-static int cpp_initialized;
+extern cpp_reader parse_in;
#endif
/* In grokdeclarator, distinguish syntactic contexts of declarators. */
int strings_processed;
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;
- }
strings_processed = cpp_handle_option (&parse_in, argc, argv);
#else
strings_processed = 0;
#include "output.h"
#if USE_CPPLIB
+#include "cpplib.h"
extern char *yy_cur;
+extern cpp_reader parse_in;
+extern cpp_options parse_options;
#endif
/* Each of the functions defined here
void
lang_init_options ()
{
+#if USE_CPPLIB
+ cpp_reader_init (&parse_in);
+ parse_in.opts = &parse_options;
+ cpp_options_init (&parse_options);
+#endif
}
void