]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Re-use strings from parser in spec_string.
authorNick Bowler <nbowler@draconx.ca>
Fri, 7 Jul 2023 03:56:29 +0000 (23:56 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 7 Jul 2023 04:19:02 +0000 (00:19 -0400)
commit566e87bb15a98ed499e79b45f6c834ad0ffdc3b7
tree4dc688045b883abf139d0bc84a96116fe4e60481
parentaf1f874c4c58d0bd8becd52c892d0b358d08736e
libcdecl: Re-use strings from parser in spec_string.

With the fixups applied by fix-yytname, we now have two distinct string
tables containing the same strings.  To avoid this duplication, add a
new internal function to allow spec_string to access the parser's token
name table.
Makefile.am
src/gen-specstr.awk
src/output.c
src/parse.y