Imported Upstream version 20101229
[platform/upstream/byacc.git] / test / calc2.y
index 393a38e..4b2d42f 100644 (file)
@@ -64,11 +64,16 @@ number:  DIGIT
 
 %% /* start of programs */
 
+#ifdef YYBYACC
+extern int YYLEX_DECL();
+static void YYERROR_DECL();
+#endif
+
 int
 main (void)
 {
     int regs[26];
-    int base;
+    int base = 10;
 
     while(!feof(stdin)) {
        yyparse(regs, &base);
@@ -77,7 +82,7 @@ main (void)
 }
 
 static void
-yyerror(const char *s)
+YYERROR_DECL()
 {
     fprintf(stderr, "%s\n", s);
 }