]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Factor out open-coded identifier patchup.
authorNick Bowler <nbowler@draconx.ca>
Thu, 20 Jul 2023 00:40:32 +0000 (20:40 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 20 Jul 2023 00:40:32 +0000 (20:40 -0400)
commit5383a8b913e74ebe5faa39ef3e570afb95779141
tree71e6356b481cabe506f699aa6b274e9d4ad69097
parent032fe50c0297846a8d03eda505c9726f60a46501
libcdecl: Factor out open-coded identifier patchup.

There are two parser rules which handle english declarations of the
form "identifier as type", these have to traverse the type name
to replace the "null" declarator with the identifier.

Instead of duplicating the code for this traversal, let's use a
helper function to do it.
src/parse.y