]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Use macros for packing tokens into bytes.
authorNick Bowler <nbowler@draconx.ca>
Fri, 14 Jul 2023 01:20:26 +0000 (21:20 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 14 Jul 2023 02:19:13 +0000 (22:19 -0400)
commit3a3760ad26782403f6686183be3faa8b22cf849b
tree5c04301f1190a20f992f68787eda1ced1daf659a
parent341382c7c656350bb89b7b602084c5e0a8fa7d8f
libcdecl: Use macros for packing tokens into bytes.

Instead of coding the same structures everywhere, move the logic to
drop/restore the upper bits of tokens into helper macros.

Should be no functional change.
src/cdecl-internal.h
src/gen-specstr.awk
src/keywords.gperf
src/scan.l