Imported Upstream version 20101229
[platform/upstream/byacc.git] / test / calc2.y
index 9bce132..4b2d42f 100644 (file)
@@ -64,6 +64,11 @@ number:  DIGIT
 
 %% /* start of programs */
 
+#ifdef YYBYACC
+extern int YYLEX_DECL();
+static void YYERROR_DECL();
+#endif
+
 int
 main (void)
 {
@@ -77,7 +82,7 @@ main (void)
 }
 
 static void
-yyerror(const char *s)
+YYERROR_DECL()
 {
     fprintf(stderr, "%s\n", s);
 }