comparison modules/stdlib @ 40166:cdb3438ceb13

strtold: New module. * lib/stdlib.in.h (strtold): New declaration. * lib/strtold.c: New file. * lib/strtod.c: Consider USE_LONG_DOUBLE. (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_, USE_LDEXP): New macros. (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for USE_LONG_DOUBLE. (underlying_strtod): Remove function. Replace with some macros. Re-add the code for a missing underlying function that was removed on 2013-02-19. * m4/strtold.m4: New file. * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared. (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD, REPLACE_STRTOLD. * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD, REPLACE_STRTOLD. * modules/strtold: New file. * doc/posix-functions/strtold.texi: Document the new module.
author Bruno Haible <bruno@clisp.org>
date Wed, 30 Jan 2019 03:52:31 +0100
parents cfcc57a4ed05
children
comparison
equal deleted inserted replaced
40165:959d7cd4aec1 40166:cdb3438ceb13
57 -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \ 57 -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \
58 -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \ 58 -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \
59 -e 's/@''GNULIB_SECURE_GETENV''@/$(GNULIB_SECURE_GETENV)/g' \ 59 -e 's/@''GNULIB_SECURE_GETENV''@/$(GNULIB_SECURE_GETENV)/g' \
60 -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \ 60 -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \
61 -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \ 61 -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \
62 -e 's/@''GNULIB_STRTOLD''@/$(GNULIB_STRTOLD)/g' \
62 -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \ 63 -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \
63 -e 's/@''GNULIB_STRTOULL''@/$(GNULIB_STRTOULL)/g' \ 64 -e 's/@''GNULIB_STRTOULL''@/$(GNULIB_STRTOULL)/g' \
64 -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GNULIB_SYSTEM_POSIX)/g' \ 65 -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GNULIB_SYSTEM_POSIX)/g' \
65 -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \ 66 -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \
66 -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \ 67 -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \
93 -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \ 94 -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \
94 -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \ 95 -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \
95 -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \ 96 -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \
96 -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \ 97 -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \
97 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \ 98 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
99 -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \
98 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \ 100 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
99 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \ 101 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
100 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \ 102 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
101 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \ 103 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
102 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \ 104 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
116 -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \ 118 -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
117 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \ 119 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
118 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \ 120 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
119 -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \ 121 -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \
120 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \ 122 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
123 -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \
121 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ 124 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
122 -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \ 125 -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \
123 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ 126 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
124 -e '/definition of _Noreturn/r $(_NORETURN_H)' \ 127 -e '/definition of _Noreturn/r $(_NORETURN_H)' \
125 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ 128 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \