yacc.c: also count calls to YYERROR in yynerrs

* data/skeletons/yacc.c: here.
This commit is contained in:
Akim Demaille
2020-08-04 17:15:43 +02:00
parent 683040b324
commit f4d33ff4b4
4 changed files with 12 additions and 4 deletions

View File

@@ -2044,6 +2044,7 @@ yyerrorlab:
label yyerrorlab therefore never appears in user code. */
if (0)
YYERROR;
++yynerrs;
/* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */