]> Savannah Git Hosting - gnulib.git/commit
c-dtoastr, c-ldtoastr: new modules
authorMarc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>
Wed, 20 May 2020 11:59:31 +0000 (13:59 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 25 Jun 2020 19:14:50 +0000 (21:14 +0200)
commit39be62df3b9b2453392109f4b6c4bb418e8d175a
tree330a9a9744072f8651d8e2d108cedcfba7553938
parent1921016d67285da9460db5cadd5e5ed32a6581d1
c-dtoastr, c-ldtoastr: new modules

These modules provide the same functionality as the modules
dtoastr and ldtoastr except for the formatting taking place in the
C locale.

* MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
* lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
* lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
defined.  Use c_snprintf and c_strtod/c_strtold instead of
snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
* lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
* modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
modules/c-ldtoastr-tests: New files.
* tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
14 files changed:
ChangeLog
MODULES.html.sh
lib/c-dtoastr.c [new file with mode: 0644]
lib/c-ldtoastr.c [new file with mode: 0644]
lib/ftoastr.c
lib/ftoastr.h
modules/c-dtoastr [new file with mode: 0644]
modules/c-dtoastr-tests [new file with mode: 0644]
modules/c-ldtoastr [new file with mode: 0644]
modules/c-ldtoastr-tests [new file with mode: 0644]
tests/test-c-dtoastr.c [new file with mode: 0644]
tests/test-c-dtoastr.sh [new file with mode: 0644]
tests/test-c-ldtoastr.c [new file with mode: 0644]
tests/test-c-ldtoastr.sh [new file with mode: 0644]