diff options
| author | Paul Eggert | 2019-02-02 13:13:45 -0800 |
|---|---|---|
| committer | Paul Eggert | 2019-02-02 13:15:10 -0800 |
| commit | adc31c6bdcdb52c2bc0240982d3e8ce870af1fab (patch) | |
| tree | 7019058dda25743b71ebc584351f6fd0e89bca0e /lib/stdlib.in.h | |
| parent | 6f52478e0c42f02cba940c21b18242f05e1ea2a1 (diff) | |
| download | emacs-adc31c6bdcdb52c2bc0240982d3e8ce870af1fab.tar.gz emacs-adc31c6bdcdb52c2bc0240982d3e8ce870af1fab.zip | |
Update from Gnulib
This incorporates:
2019-02-02 dtoastr, ftoastr, ldtoastr: port to c-strtod changes
2019-02-01 c-strtod, c-strtold: use the bug fixes
2019-01-30 strtold: New module
* doc/misc/texinfo.tex, lib/ftoastr.c, lib/regexec.c, lib/stdlib.in.h:
* m4/stdlib_h.m4:
Copy from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* m4/c-strtod.m4: Remove.
Diffstat (limited to 'lib/stdlib.in.h')
| -rw-r--r-- | lib/stdlib.in.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index be8ab3b86c2..f829525c104 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -929,6 +929,7 @@ _GL_WARN_ON_USE (setenv, "setenv is unportable - " | |||
| 929 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 929 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
| 930 | # define strtod rpl_strtod | 930 | # define strtod rpl_strtod |
| 931 | # endif | 931 | # endif |
| 932 | # define GNULIB_defined_strtod_function 1 | ||
| 932 | _GL_FUNCDECL_RPL (strtod, double, (const char *str, char **endp) | 933 | _GL_FUNCDECL_RPL (strtod, double, (const char *str, char **endp) |
| 933 | _GL_ARG_NONNULL ((1))); | 934 | _GL_ARG_NONNULL ((1))); |
| 934 | _GL_CXXALIAS_RPL (strtod, double, (const char *str, char **endp)); | 935 | _GL_CXXALIAS_RPL (strtod, double, (const char *str, char **endp)); |
| @@ -948,6 +949,32 @@ _GL_WARN_ON_USE (strtod, "strtod is unportable - " | |||
| 948 | # endif | 949 | # endif |
| 949 | #endif | 950 | #endif |
| 950 | 951 | ||
| 952 | #if @GNULIB_STRTOLD@ | ||
| 953 | /* Parse a 'long double' from STRING, updating ENDP if appropriate. */ | ||
| 954 | # if @REPLACE_STRTOLD@ | ||
| 955 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 956 | # define strtold rpl_strtold | ||
| 957 | # endif | ||
| 958 | # define GNULIB_defined_strtold_function 1 | ||
| 959 | _GL_FUNCDECL_RPL (strtold, long double, (const char *str, char **endp) | ||
| 960 | _GL_ARG_NONNULL ((1))); | ||
| 961 | _GL_CXXALIAS_RPL (strtold, long double, (const char *str, char **endp)); | ||
| 962 | # else | ||
| 963 | # if !@HAVE_STRTOLD@ | ||
| 964 | _GL_FUNCDECL_SYS (strtold, long double, (const char *str, char **endp) | ||
| 965 | _GL_ARG_NONNULL ((1))); | ||
| 966 | # endif | ||
| 967 | _GL_CXXALIAS_SYS (strtold, long double, (const char *str, char **endp)); | ||
| 968 | # endif | ||
| 969 | _GL_CXXALIASWARN (strtold); | ||
| 970 | #elif defined GNULIB_POSIXCHECK | ||
| 971 | # undef strtold | ||
| 972 | # if HAVE_RAW_DECL_STRTOLD | ||
| 973 | _GL_WARN_ON_USE (strtold, "strtold is unportable - " | ||
| 974 | "use gnulib module strtold for portability"); | ||
| 975 | # endif | ||
| 976 | #endif | ||
| 977 | |||
| 951 | #if @GNULIB_STRTOLL@ | 978 | #if @GNULIB_STRTOLL@ |
| 952 | /* Parse a signed integer whose textual representation starts at STRING. | 979 | /* Parse a signed integer whose textual representation starts at STRING. |
| 953 | The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, | 980 | The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0, |