]> git.draconx.ca Git - cdecl99.git/commit
cdecl99: Simplify main command output.
authorNick Bowler <nbowler@draconx.ca>
Fri, 12 Jan 2024 05:27:09 +0000 (00:27 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 12 Jan 2024 05:38:35 +0000 (00:38 -0500)
commitfeb48afbafaee0119c91204b21edf099f326578f
tree3ff3f6137d514f6dfb8f8597d30dec26446a1303
parent23bee8f66fbd14c308d3c509a59024768bc2feef
cdecl99: Simplify main command output.

When the separate command functions were merged everything was combined
into one relatively complex printf call.  Profiling on GNU/Linux showed
a surprising amount of time spent printing.

Restructure the code to just print the two cases separately.  The result
is easier to understand, compiles to less code, and is slightly faster,
so what's not to like?
src/commands.c