mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-09-01 11:16:02 +00:00
* lib/c-strtod.c: Include <langinfo.h>, c-ctype.h. (decimal_point_char): New function, copied from lib/vasnprintf.c. (C_STRTOD): On platforms that don't have STRTOD_L nor a working uselocale(), pre-parse the number and call STRTOD after having replaced the '.' with the locale-dependent decimal point character. * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOF, gl_C_STRTOLD): Test for nl_langinfo(). * modules/c-strtof (Depends-on): Add c-ctype. Remove strdup-posix. * modules/c-strtod (Depends-on): Likewise. * modules/c-strtold (Depends-on): Likewise.
31 lines
322 B
Plaintext
31 lines
322 B
Plaintext
Description:
|
|
Convert string to double in C locale.
|
|
|
|
Files:
|
|
lib/c-strtod.c
|
|
lib/c-strtod.h
|
|
m4/c-strtod.m4
|
|
m4/intl-thread-locale.m4
|
|
|
|
Depends-on:
|
|
c99
|
|
extensions
|
|
locale
|
|
c-ctype
|
|
strtod
|
|
|
|
configure.ac:
|
|
gl_C_STRTOD
|
|
|
|
Makefile.am:
|
|
lib_SOURCES += c-strtod.c
|
|
|
|
Include:
|
|
"c-strtod.h"
|
|
|
|
License:
|
|
GPL
|
|
|
|
Maintainer:
|
|
Paul Eggert, Jim Meyering
|