]> git.draconx.ca Git - cdecl99.git/commit
cdecl99: Better "help" output on some old systems.
authorNick Bowler <nbowler@draconx.ca>
Thu, 7 Dec 2023 02:35:26 +0000 (21:35 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 7 Dec 2023 02:35:26 +0000 (21:35 -0500)
commita4355b10f7738d5b8438f03fa193a710b765d8e0
treeee46b4c12df5fad9d49b382339339622e4fcb975
parent5fc35dc076078b9710d86b47c53f4315edd3cd82
cdecl99: Better "help" output on some old systems.

Some very old printf implementations return 0 on success instead of the
number of bytes written.  We should never see a return of 0 normally,
so we can improve the output to be less of a garbled mess by printing
a newline if that happens (same as the error case).  This is a simple
tweak that should have virtually no impact on modern systems.
src/execute.gperf