]> git.draconx.ca Git - cdecl99.git/commitdiff
cdecl99: Optimize print_version a bit.
authorNick Bowler <nbowler@draconx.ca>
Wed, 13 Dec 2023 03:01:31 +0000 (22:01 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 13 Dec 2023 03:01:31 +0000 (22:01 -0500)
Instead of a whole bunch of separate print calls, convert print_version
to a single call to a printing function, with a single string argument.
Compilers do not seem to coalesce multiple consecutive prints together,
so doing it explicitly gives a modest reduction in code size.

Wrap that all up into a new set of macros so that the same trick can
also be shared with the test applications.


No differences found