]> git.draconx.ca Git - cdecl99.git/commit
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)
commitd0981bca9268f175a22f10b537c0099fb76921fd
tree7e542f3cd8d309488ba042ada50dd5aebeebc6c4
parent1d1912971e771773fa8041bddd100065bfb752be
libcdecl: Fix crash when bootstrapped w/ old Bison.

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.
src/scan.l