mescc: Mes C Library: Support GNU Awk: Add dtoab, %f in vfprintf, vsnprintf.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 Jan 2020 17:42:25 +0000 (18:42 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 Jan 2020 17:42:25 +0000 (18:42 +0100)
commitf3154aabe45b01bcbfd1722ad9e7ec22c92b448c
tree35ba39d857ca314f542a6589f1a7dcadd87b97ca
parent742e88abd5381181e26bde75c83724a9f0e212bd
mescc: Mes C Library: Support GNU Awk: Add dtoab, %f in vfprintf, vsnprintf.

* include/libmes.h (dtoab): Declare.
* lib/mes/ntoab.c (ntoab): Update.
* lib/mes/dtoab.c: New file.
* build-aux/configure-lib.sh (libmes_SOURCES, libc_tcc_SOURCES): Add
it.
* lib/tests/mes/90-dtoab.c: Test it.
* lib/tests/stdio/90-sprintf.c: Test it.
* build-aux/check-mescc.sh (tests): Run it, against...
* lib/tests/mes/90-dtoab.stdout: ...baseline.
* lib/stdio/vfprintf.c (vfprintf): Support %f, even more naive support
for %e, %E, %g, %G.
* lib/stdio/vsnprintf.c (vsnprintf): Likewise.
build-aux/check-mescc.sh
build-aux/configure-lib.sh
include/mes/lib.h
lib/mes/dtoab.c [new file with mode: 0644]
lib/stdio/vfprintf.c
lib/stdio/vsnprintf.c
lib/tests/mes/90-dtoab.c [new file with mode: 0644]
lib/tests/mes/90-dtoab.stdout [new file with mode: 0644]
lib/tests/stdio/90-sprintf.c [new file with mode: 0644]
lib/tests/stdio/90-sprintf.stdout [new file with mode: 0644]