summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-26 08:59:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-26 08:59:47 -0700
commitef8a410aff1e90f727f813814412dfe625350aa0 (patch)
treed0cb593f3e0844c8209cdc1dbf23ce4eaab85189
parent84fb60917ce14c80d1382545276acd436954290e (diff)
downloadtxr-ef8a410aff1e90f727f813814412dfe625350aa0.tar.gz
txr-ef8a410aff1e90f727f813814412dfe625350aa0.tar.bz2
txr-ef8a410aff1e90f727f813814412dfe625350aa0.zip
byacc: fix regression caused by yystype.
* parser.c (lisp_parse_impl): Refer to YYSTYPE not yystype, which doesn't exist under byacc. Reported by Sergey Romanov, against CentOS 8.4 using byacc 1.9.20170709-4.el8; easily reproduces with 1.9.20140715 on Ubuntu 18.
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 2ef62537..e38b1b85 100644
--- a/parser.c
+++ b/parser.c
@@ -681,7 +681,7 @@ static val lisp_parse_impl(val self, enum prime_parser prime,
if (str) {
int junk = 0;
if (prime == prime_json) {
- yystype yyl;
+ YYSTYPE yyl;
junk = yylex(&yyl, pi->scanner);
} else {
junk = pi->recent_tok.yy_char;