]> Savannah Git Hosting - gnulib.git/commit
strtof: New module.
authorBruno Haible <bruno@clisp.org>
Wed, 21 Feb 2024 21:45:47 +0000 (22:45 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 22 Feb 2024 00:16:32 +0000 (01:16 +0100)
commit01a485ed9b3b2ce3d533581fbca94970bdef9998
tree1452497dce887c4fa2ef5f489bdbfaf501fdc70f
parentc78e0437cc868f3ee9a1ab9e46be2e4c8de7a03e
strtof: New module.

* lib/stdlib.in.h (strtof): New declaration.
* lib/strtod.c: Support USE_FLOAT.
* lib/strtof.c: New file.
* m4/strtof.m4: New file, based on m4/strtod.m4.
* m4/ldexpf.m4 (gl_CHECK_LDEXPF_NO_LIBM): New macro, based on
m4/ldexp.m4.
* m4/stdlib_h.m4 (gl_STDLIB_H_REQUIRE_DEFAULTS): Initialize
GNULIB_STRTOF.
* modules/stdlib (Makefile.am): Substitute GNULIB_STRTOF, HAVE_STRTOF,
REPLACE_STRTOF.
* modules/strtof: New file.
* tests/test-stdlib-c++.cc (strtof): Check signature.
* doc/posix-functions/strtof.texi: Mention the new module and the bugs
that it fixes.
(gl_STDLIB_H_DEFAULTS): Initialize HAVE_STRTOF, REPLACE_STRTOF.
ChangeLog
doc/posix-functions/strtof.texi
lib/stdlib.in.h
lib/strtod.c
lib/strtof.c [new file with mode: 0644]
m4/ldexpf.m4
m4/stdlib_h.m4
m4/strtof.m4 [new file with mode: 0644]
modules/stdlib
modules/strtof [new file with mode: 0644]
tests/test-stdlib-c++.cc