]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Merge both parser function implementations.
authorNick Bowler <nbowler@draconx.ca>
Wed, 28 Jun 2023 02:48:11 +0000 (22:48 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sun, 2 Jul 2023 00:16:06 +0000 (20:16 -0400)
commit6cc6418811ac7b38fbe1ceed1de949d33439b51c
tree9c63cd99323e10eda87074083e2e5b0409e085c9
parentc807d652225fe170ee442591bb2a0bfc91c8618c
libcdecl: Merge both parser function implementations.

The only remaining meaningful difference between the cdecl_parse_decl
and cdecl_parse_english implementations is the function-simplification
passes are only done for cdecl_parse_decl.

We can easily just make those conditional in a common parser function,
to reduce code duplication.
src/parse-decl.c