]> git.draconx.ca Git - cdecl99.git/commitdiff
libcdecl: Fix crash when bootstrapped w/ old Bison.
authorNick Bowler <nbowler@draconx.ca>
Thu, 20 Jul 2023 00:22:32 +0000 (20:22 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 20 Jul 2023 00:22:32 +0000 (20:22 -0400)
We are comparing the packed token value to check whether this is an
identifier or a keyword against the true value.  This happens to work
on new Bison (when using api.token.raw) as these values are the same,
but on old Bison the result is never true.

Thus, the scanner fails to assign the "strval" for identifier tokens
and the result fails very badly.  Easy enough to fix.


No differences found