]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Avoid snprintf for integer conversions.
authorNick Bowler <nbowler@draconx.ca>
Thu, 26 Oct 2023 00:59:16 +0000 (20:59 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 26 Oct 2023 01:25:32 +0000 (21:25 -0400)
commit180a565ffb443a3c9430bd04e7bbb1963e239412
tree929a3e47ff8bc45484898f99e8a4fca5caca3e42
parent8185af6a8e8e587f267d901328f7c5d956c06de3
libcdecl: Avoid snprintf for integer conversions.

To reduce the library dependency on gnulib replacements, implement the
conversion of uintmax_t to decimal by simple repeated division.  This
way avoids any need to worry about whether the C library can actually
perform 64-bit decimal conversions properly.
src/cdecl-internal.h
src/declare.c
src/explain.c
src/output.c