diff options
author | H.J. Lu <hjl@gnu.org> | 1998-03-23 22:59:18 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-03-23 15:59:18 -0700 |
commit | 990ac8d73027611ce75c76a6bd26eb1c0043a278 (patch) | |
tree | 6efc2323844d0a320c4bbb2d9ba8cc52342a73a6 /gcc/objc | |
parent | 47a0b68fb68b1691ac4980ac48b4f0dcde437c14 (diff) | |
download | gcc-990ac8d73027611ce75c76a6bd26eb1c0043a278.zip gcc-990ac8d73027611ce75c76a6bd26eb1c0043a278.tar.gz gcc-990ac8d73027611ce75c76a6bd26eb1c0043a278.tar.bz2 |
c-parse.in: Recognize protocol qualifiers in class definitions for objc.
* c-parse.in: Recognize protocol qualifiers in class
definitions for objc.
Include "output.h".
(yyerror): Remove redundant decl.
(yyprint): Fix prototype.
From-SVN: r18788
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-parse.c | 10 | ||||
-rw-r--r-- | gcc/objc/objc-parse.y | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/objc/objc-parse.c b/gcc/objc/objc-parse.c index 9678549..dde9480 100644 --- a/gcc/objc/objc-parse.c +++ b/gcc/objc/objc-parse.c @@ -141,7 +141,7 @@ int objc_public_flag; /* Tell yyparse how to print a token's value, if yydebug is set. */ #define YYPRINT(FILE,YYCHAR,YYLVAL) yyprint(FILE,YYCHAR,YYLVAL) -extern void yyprint PROTO ((FILE *, int, YYSTYPE)); +extern void yyprint PROTO ((FILE *, int, YYSTYPE)); #include <stdio.h> #ifndef __cplusplus @@ -1638,7 +1638,7 @@ static const short yycheck[] = { 9, 48, 49, 50, 51, 52 }; /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/share/bison.simple" +#line 3 "/usr/cygnus/latest-940103/share/bison.simple" /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. @@ -1831,7 +1831,7 @@ __yy_memcpy (char *to, char *from, int count) #endif #endif -#line 196 "/usr/share/bison.simple" +#line 196 "/usr/cygnus/latest-940103/share/bison.simple" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. @@ -2609,7 +2609,7 @@ case 89: if (IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) != error_mark_node || IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) != current_function_decl) { - error ("`%s' undeclared (first use this function)", + error ("`%s' undeclared (first use in this function)", IDENTIFIER_POINTER (yyvsp[0].ttype)); if (! undeclared_variable_notice) @@ -4911,7 +4911,7 @@ case 556: break;} } /* the action file gets copied in in place of this dollarsign */ -#line 498 "/usr/share/bison.simple" +#line 498 "/usr/cygnus/latest-940103/share/bison.simple" yyvsp -= yylen; yyssp -= yylen; diff --git a/gcc/objc/objc-parse.y b/gcc/objc/objc-parse.y index a4884b3..1155473 100644 --- a/gcc/objc/objc-parse.y +++ b/gcc/objc/objc-parse.y @@ -231,7 +231,7 @@ int objc_public_flag; /* Tell yyparse how to print a token's value, if yydebug is set. */ #define YYPRINT(FILE,YYCHAR,YYLVAL) yyprint(FILE,YYCHAR,YYLVAL) -extern void yyprint PROTO ((FILE *, int, YYSTYPE)); +extern void yyprint PROTO ((FILE *, int, YYSTYPE)); %} %% @@ -635,7 +635,7 @@ primary: if (IDENTIFIER_GLOBAL_VALUE ($1) != error_mark_node || IDENTIFIER_ERROR_LOCUS ($1) != current_function_decl) { - error ("`%s' undeclared (first use this function)", + error ("`%s' undeclared (first use in this function)", IDENTIFIER_POINTER ($1)); if (! undeclared_variable_notice) |