From b12da25e3e8d319b89086d738bf797e677a7d617 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Wed, 25 Nov 1998 08:54:10 +0000 Subject: gcc.c: Split out Objective-C specs to... * gcc.c: Split out Objective-C specs to... * objc/lang-specs.h: here. (New file.) Make the specs cpplib aware. * c-lex.c (init_parse): Always initialize the filename global. * objc/objc-act.c (lang_init): Always call check_newline at beginning of file. From-SVN: r23850 --- gcc/objc/objc-act.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gcc/objc/objc-act.c') diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 9f8bc51..332c93b 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -592,6 +592,10 @@ generate_struct_by_value_array () exit (0); } +#if USE_CPPLIB +extern char *yy_cur; +#endif + void lang_init_options () { @@ -605,7 +609,10 @@ lang_init () With luck, we discover the real source file's name from that and put it in input_filename. */ ungetc (check_newline (), finput); -#endif +#else + check_newline (); + yy_cur--; +#endif /* The line number can be -1 if we had -g3 and the input file had a directive specifying line 0. But we want predefined -- cgit v1.1