]> git.draconx.ca Git - cdecl99.git/commit
cdecl99: Combine all the main command implementations.
authorNick Bowler <nbowler@draconx.ca>
Fri, 28 Jul 2023 06:01:53 +0000 (02:01 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 28 Jul 2023 06:01:53 +0000 (02:01 -0400)
commit49dcbd9216f3513ec11731a41d4b73acaacb5949
treea614d0da21c748b49f9bd52a876df86697f7713d
parentd5c6a2e654422894c528cda52e951739a6b66ae6
cdecl99: Combine all the main command implementations.

The explain, simplify and declare (or type) commands are all virtually
identical.  The primary difference is just which parser mode to use,
and which output mode to use, with the various combinations giving
the various commands.

Other than some very slight tweak to the formatting to handle "simplify"
with multiple full declarators, we can just implement one function that
does all three operations: a pretty nice cleanup.
src/cdecl99.h
src/commands.c
src/execute.gperf