aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.y
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>1998-03-23 22:59:18 +0000
committerJeff Law <law@gcc.gnu.org>1998-03-23 15:59:18 -0700
commit990ac8d73027611ce75c76a6bd26eb1c0043a278 (patch)
tree6efc2323844d0a320c4bbb2d9ba8cc52342a73a6 /gcc/c-parse.y
parent47a0b68fb68b1691ac4980ac48b4f0dcde437c14 (diff)
downloadgcc-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/c-parse.y')
-rw-r--r--gcc/c-parse.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/c-parse.y b/gcc/c-parse.y
index 68d38e0..bb783f0 100644
--- a/gcc/c-parse.y
+++ b/gcc/c-parse.y
@@ -65,6 +65,7 @@ State 434 contains 2 shift/reduce conflicts. (Four ways to parse this.) */
#include "c-lex.h"
#include "c-tree.h"
#include "flags.h"
+#include "output.h"
#ifdef MULTIBYTE_CHARS
#include <stdlib.h>
@@ -80,8 +81,6 @@ char *language_string = "GNU C";
extern int errno;
#endif
-void yyerror ();
-
/* Like YYERROR but do call yyerror. */
#define YYERROR1 { yyerror ("syntax error"); YYERROR; }
@@ -232,7 +231,7 @@ static int undeclared_variable_notice;
/* 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 ();
+extern void yyprint PROTO ((FILE *, int, YYSTYPE));
%}
%%