aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/yaccpar3
-rw-r--r--lib/yaccpars4
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/yaccpar b/lib/yaccpar
index 2d5a5fbe..451d7187 100644
--- a/lib/yaccpar
+++ b/lib/yaccpar
@@ -217,7 +217,8 @@ yydefault:
fprint(2, "%s", yystatname(yystate));
fprint(2, "saw %s\n", yytokname(yychar));
}
-yyerrlab:
+ goto yyerrlab;
+ yyerrlab:
yynerrs++;
case 1:
diff --git a/lib/yaccpars b/lib/yaccpars
index 28addfa6..2b69c8a8 100644
--- a/lib/yaccpars
+++ b/lib/yaccpars
@@ -214,8 +214,8 @@ yydefault:
printf("%s", yystatname(yystate));
printf("saw %s\n", yytokname(yychar));
}
- goto yyerrlab;
-yyerrlab:
+ goto yyerrlab;
+ yyerrlab:
yynerrs++;
case 1: