diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-28 09:26:28 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-03-28 09:26:28 +0000 |
commit | 9fd68c082693e2db323eee226f8f041a1a596cc9 (patch) | |
tree | 60bd2c4c9dd96be75e26bf7a55c401eb632b6850 /gcc/c-lang.c | |
parent | 9f9d16c921fcede880ddba43b970b29f0f888d8f (diff) |
Merge from mainlinebefore_gc_merge_990902egcs_gc_branch
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/egcs_gc_branch@26036 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r-- | gcc/c-lang.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c index 622abd4fb51..21f8b191190 100644 --- a/gcc/c-lang.c +++ b/gcc/c-lang.c @@ -30,6 +30,13 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #include "ggc.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 is an alternative to a function in objc-actions.c. */ @@ -44,22 +51,29 @@ lang_decode_option (argc, argv) void lang_init_options () { +#if USE_CPPLIB + cpp_reader_init (&parse_in); + parse_in.opts = &parse_options; + cpp_options_init (&parse_options); +#endif } void lang_init () { -#if !USE_CPPLIB /* the beginning of the file is a new line; check for # */ /* With luck, we discover the real source file's name from that and put it in input_filename. */ +#if !USE_CPPLIB ungetc (check_newline (), finput); -#endif +#else + check_newline (); + yy_cur--; +#endif + save_lang_status = &push_c_function_context; restore_lang_status = &pop_c_function_context; mark_lang_status = &mark_c_function_context; - - c_parse_init (); } void @@ -141,7 +155,7 @@ recognize_objc_keyword () tree build_objc_string (len, str) int len ATTRIBUTE_UNUSED; - char *str ATTRIBUTE_UNUSED; + const char *str ATTRIBUTE_UNUSED; { abort (); return NULL_TREE; |