summaryrefslogtreecommitdiffstats
path: root/y.tab.c.patch
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-12-28 07:07:59 -0800
committerKaz Kylheku <kaz@kylheku.com>2023-12-28 07:07:59 -0800
commitdd9398ff7d4776aa67951800aeb402a94d42f50f (patch)
tree7183f9d9011ad2d341d10f85fb51b5dcb0eeb195 /y.tab.c.patch
parent07912e6dd718e22b318eaa7d7c3793f6c86ea40d (diff)
downloadtxr-dd9398ff7d4776aa67951800aeb402a94d42f50f.tar.gz
txr-dd9398ff7d4776aa67951800aeb402a94d42f50f.tar.bz2
txr-dd9398ff7d4776aa67951800aeb402a94d42f50f.zip
build: automate clean-up of shipped scanner and parser
* Makefile (shipped): Copy the shipped materials unconditionally, rather than checking if they are different. If a patch exists for a shipped file, then apply it. * lex.yy.c.shipped, y.tab.c.shipped: Updated. * lex.yy.c.patch, y.tab.c.patch: New files.
Diffstat (limited to 'y.tab.c.patch')
-rw-r--r--y.tab.c.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/y.tab.c.patch b/y.tab.c.patch
new file mode 100644
index 00000000..d5de8485
--- /dev/null
+++ b/y.tab.c.patch
@@ -0,0 +1,28 @@
+--- y.tab.c.shipped 2023-12-28 00:00:00.000000000 -0800
++++ y.tab.c.shipped 2023-12-28 00:00:00.000000000 -0800
+@@ -2975,9 +2975,6 @@
+ /* The semantic value of the lookahead symbol. */
+ YYSTYPE yylval;
+
+- /* Number of syntax errors so far. */
+- int yynerrs;
+-
+ int yystate;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
+@@ -3031,7 +3028,6 @@
+
+ yystate = 0;
+ yyerrstatus = 0;
+- yynerrs = 0;
+ yychar = YYEMPTY; /* Cause a token to be read. */
+
+ /* Initialize stack pointers.
+@@ -7047,7 +7043,6 @@
+ /* If not already recovering from an error, report this error. */
+ if (!yyerrstatus)
+ {
+- ++yynerrs;
+ #if ! YYERROR_VERBOSE
+ yyerror (scnr, parser, YY_("syntax error"));
+ #else