Document various strtod bugs, with some fixes.
authorEric Blake <ebb9@byu.net>
Sat, 29 Mar 2008 19:50:21 +0000 (13:50 -0600)
committerEric Blake <ebb9@byu.net>
Sun, 30 Mar 2008 01:16:57 +0000 (19:16 -0600)
commitde138ad63af1ad9cb74b16743c511eebf0ccfbaa
treec84f448b732d7af4b56fb4203754b085169a88a7
parent857523660ddabbf1e4bba1c6f5f322451991fa08
Document various strtod bugs, with some fixes.

* doc/posix-functions/strtod.texi (strtod): Document bugs with
"-0x", "inf", "nan", and hex constants.
* doc/posix-functions/atof.texi (atof): Likewise.
* modules/stdlib (Makefile.am): Support strtod.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
* m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
detect additional strtod bugs.
* lib/stdlib.in.h (rpl_strtod): Add declarations.
* lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
bool where appropriate.  Parse 'inf' and 'nan'.
* tests/test-strtod.c: New file.
* modules/strtod (Depends-on): Add stdbool, stdlib.
(configure.ac): Turn on module indicator.
* modules/strtod-tests: New module.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-functions/atof.texi
doc/posix-functions/strtod.texi
lib/stdlib.in.h
lib/strtod.c
m4/stdlib_h.m4
m4/strtod.m4
modules/stdlib
modules/strtod
modules/strtod-tests [new file with mode: 0644]
tests/test-strtod.c [new file with mode: 0644]