]> git.draconx.ca Git - liblbx.git/commit
lbximg: Simplify pnm text output.
authorNick Bowler <nbowler@draconx.ca>
Tue, 21 Sep 2021 03:21:05 +0000 (23:21 -0400)
committerNick Bowler <nbowler@draconx.ca>
Tue, 21 Sep 2021 04:53:46 +0000 (00:53 -0400)
commit5f678b5604af19ce003930897e77fd78d7ab5c72
tree95d7b0e7bc5e7c44439997d1d7ffdc5765565aa6
parentc123302699919b0f34de9bc5d9019c2c1f14b7a1
lbximg: Simplify pnm text output.

The ASCII output routine here is pointlessly complex, we are only
printing very short lines and a fixed length buffer will do just
fine.

Moreover, let's just optimize it out completely in the case where
the C character set is an ASCII superset and assertions are disabled.
src/pnm.c