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 | 0799fb5ca22945f3f34bb99f5edc703c4c490cff (patch) | |
tree | d0cb593f3e0844c8209cdc1dbf23ce4eaab85189 | |
parent | ec4a1564bca4177dbfdcc6767fca5d52ce38dce0 (diff) | |
download | txr-0799fb5ca22945f3f34bb99f5edc703c4c490cff.tar.gz txr-0799fb5ca22945f3f34bb99f5edc703c4c490cff.tar.bz2 txr-0799fb5ca22945f3f34bb99f5edc703c4c490cff.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; |