1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-20 11:01:20 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Bruno Haible
4dd6fc750d Update test results on OSF/1. 2008-04-01 01:37:42 +02:00
Eric Blake
9ce1093cdc Correct docs for Solaris strtod.
* doc/posix-functions/strtod.texi (strtod): Solaris strtod parses
"nan" after all.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-31 08:30:11 -06:00
Eric Blake
9553f74080 More strtod documentation.
* doc/posix-functions/strtod.texi (strtod): Interpret more test
failures as distinct bugs.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-31 06:22:49 -06:00
Bruno Haible
b442459322 Add info about many more platforms. 2008-03-31 01:59:11 +02:00
Eric Blake
35029b9098 More strtod touchups.
* tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
sign of negative underflow, for now.  Use .5, not .1.
* doc/posix-functions/strtod.texi (strtod): Mention these
limitations.
Reported by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-30 16:01:25 -06:00
Eric Blake
bdc599c7bc Add hex float support.
* modules/strtod (Depends-on): Add c-ctype.
(Link): Mention POW_LIB.
* lib/strtod.c (strtod): Recognize hex floats.  Don't allow
whitespace between 'e' and exponent.
* tests/test-strtod.c (main): Enable hex float tests.
* doc/posix-functions/strtod.texi (strtod): Document what gnulib
now provides.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-29 21:24:07 -06:00
Eric Blake
de138ad63a 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>
2008-03-29 19:16:57 -06:00
Bruno Haible
2b6c08c775 Rename two directories: headers -> posix-headers, functions -> posix-functions. 2008-01-20 00:09:59 +01:00