]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Tweak invalid character error from scanner.
authorNick Bowler <nbowler@draconx.ca>
Thu, 15 Jun 2023 00:34:56 +0000 (20:34 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 16 Jun 2023 04:10:13 +0000 (00:10 -0400)
commit9a50128ac12ab834fd97699c7ca543fc040ea8f1
tree3462515988307999e0beb62c5d9c57722c1e3e9b
parenta9ae295484868287ff1b8f2d613fa4c010c06891
libcdecl: Tweak invalid character error from scanner.

By adjusting how we format the error message, the format string is
changed to be completely identical to a format string used by the
parser error reporting, which avoids some wasted code space in
the library.

Furthermore, make some tweaks to the invalid character pretty-printing
which seems to let GCC generate a bit more compact code.
src/scan.l
tests/general.at