aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-act.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@rabi.phys.columbia.edu>1998-11-25 08:54:10 +0000
committerJeff Law <law@gcc.gnu.org>1998-11-25 01:54:10 -0700
commitb12da25e3e8d319b89086d738bf797e677a7d617 (patch)
tree80d2563d80fdd9f18e7cc3d3c913e75d8eba1e56 /gcc/objc/objc-act.c
parenta64f294eeae361dd1be45d145b30f0904ec557e5 (diff)
downloadgcc-b12da25e3e8d319b89086d738bf797e677a7d617.zip
gcc-b12da25e3e8d319b89086d738bf797e677a7d617.tar.gz
gcc-b12da25e3e8d319b89086d738bf797e677a7d617.tar.bz2
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
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r--gcc/objc/objc-act.c9
1 files changed, 8 insertions, 1 deletions
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