]> git.draconx.ca Git - cdecl99.git/commit
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)
commit09d517aa84f99c3686803d156cde10fc0c02bdc2
treed6fc91c680fb1400fdbcf979f5c320f318864d77
parenta4355b10f7738d5b8438f03fa193a710b765d8e0
cdecl99: Optimize print_version a bit.

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.
Makefile.am
src/cdecl99.c
src/version.h [new file with mode: 0644]
t/rendertest.c
t/test.h
t/testlib.c