diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-26 08:59:47 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-26 08:59:47 -0700 |
commit | ef8a410aff1e90f727f813814412dfe625350aa0 (patch) | |
tree | d0cb593f3e0844c8209cdc1dbf23ce4eaab85189 | |
parent | 84fb60917ce14c80d1382545276acd436954290e (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |