diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-04-06 14:01:33 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-04-06 14:01:33 +0000 |
commit | 944fc8abefc438b7087db07cdf81c1bbcb0faf26 (patch) | |
tree | 705fdf7fa2c894b86921a9d5b3c46a2bd38525cb /gcc/objc | |
parent | 3286ab57366ae3422fdacff3c2e605ea81a29c44 (diff) | |
download | gcc-944fc8abefc438b7087db07cdf81c1bbcb0faf26.zip gcc-944fc8abefc438b7087db07cdf81c1bbcb0faf26.tar.gz gcc-944fc8abefc438b7087db07cdf81c1bbcb0faf26.tar.bz2 |
More system.h cutover patches:
* c-parse.in: Include system.h, and remove stuff now made redundant.
* cccp.c: Likewise.
* cexp.y: Likewise.
* protoize.c: Likewise. Properly check for cpp stringification.
* Makefile.in (c-parse.o, cccp.o, cexp.o, protoize.o, unprotoize.o):
Depend on system.h.
* objc/Make-lang.in (objc-parse.o): Likewise.
From-SVN: r19020
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/objc/objc-parse.c | 9 | ||||
-rw-r--r-- | gcc/objc/objc-parse.y | 9 |
3 files changed, 3 insertions, 17 deletions
diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in index 4b41c9a..ebde9d0 100644 --- a/gcc/objc/Make-lang.in +++ b/gcc/objc/Make-lang.in @@ -71,7 +71,7 @@ cc1obj$(exeext): $(P) $(OBJC_OBJS) $(OBJS) $(LIBDEPS) objc-parse.o : $(srcdir)/objc/objc-parse.c \ $(CONFIG_H) $(TREE_H) \ $(srcdir)/c-lex.h $(srcdir)/c-tree.h $(srcdir)/input.h \ - $(srcdir)/flags.h $(srcdir)/output.h $(srcdir)/objc/objc-act.h + $(srcdir)/flags.h $(srcdir)/output.h $(srcdir)/objc/objc-act.h system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \ -c $(srcdir)/objc/objc-parse.c diff --git a/gcc/objc/objc-parse.c b/gcc/objc/objc-parse.c index cf3f3f7..abb9099 100644 --- a/gcc/objc/objc-parse.c +++ b/gcc/objc/objc-parse.c @@ -68,9 +68,7 @@ #line 33 "objc-parse.y" #include "config.h" - -#include <stdio.h> -#include <errno.h> +#include "system.h" #include <setjmp.h> #include "tree.h" @@ -81,7 +79,6 @@ #include "output.h" #ifdef MULTIBYTE_CHARS -#include <stdlib.h> #include <locale.h> #endif @@ -91,10 +88,6 @@ definition here. */ char *language_string = "GNU Obj-C"; -#ifndef errno -extern int errno; -#endif - /* Like YYERROR but do call yyerror. */ #define YYERROR1 { yyerror ("syntax error"); YYERROR; } diff --git a/gcc/objc/objc-parse.y b/gcc/objc/objc-parse.y index 807ad5a..c216d43 100644 --- a/gcc/objc/objc-parse.y +++ b/gcc/objc/objc-parse.y @@ -32,9 +32,7 @@ Boston, MA 02111-1307, USA. */ %{ #include "config.h" - -#include <stdio.h> -#include <errno.h> +#include "system.h" #include <setjmp.h> #include "tree.h" @@ -45,7 +43,6 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #ifdef MULTIBYTE_CHARS -#include <stdlib.h> #include <locale.h> #endif @@ -55,10 +52,6 @@ Boston, MA 02111-1307, USA. */ definition here. */ char *language_string = "GNU Obj-C"; -#ifndef errno -extern int errno; -#endif - /* Like YYERROR but do call yyerror. */ #define YYERROR1 { yyerror ("syntax error"); YYERROR; } |