From ef8a410aff1e90f727f813814412dfe625350aa0 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 26 Jun 2021 08:59:47 -0700 Subject: 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. --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3