comparison m4/c-strtod.m4 @ 40177:dcd889592b62

dtoastr,ftoastr,ldtoastr: port to c-strtod changes Decouple these modules from c-strtod. Nowadays it’s reasonable to assume the C99 signatures for strtod and strtold. Programs that require stricter adherence to C99 should also use the strtod and strtold modules as needed, and we no longer need the HAVE_C99_STRTOLD macro. * NEWS: Mention this. * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold. * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD. * modules/dtoastr, modules/ftoastr, modules/ldtoastr: (Files): Remove m4/c-strtod.m4. (configure.ac): Do not require gl_C99_STRTOLD, which no longer exists.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 02 Feb 2019 13:01:55 -0800
parents b716418da8b9
children
comparison
equal deleted inserted replaced
40176:8d1216613135 40177:dcd889592b62
1 # c-strtod.m4 serial 17 1 # c-strtod.m4 serial 18
2 2
3 # Copyright (C) 2004-2006, 2009-2019 Free Software Foundation, Inc. 3 # Copyright (C) 2004-2006, 2009-2019 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation 4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it, 5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved. 6 # with or without modifications, as long as this notice is preserved.
45 dnl Prerequisites of lib/c-strtold.c. 45 dnl Prerequisites of lib/c-strtold.c.
46 AC_DEFUN([gl_C_STRTOLD], 46 AC_DEFUN([gl_C_STRTOLD],
47 [ 47 [
48 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 48 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
49 AC_REQUIRE([gt_FUNC_USELOCALE]) 49 AC_REQUIRE([gt_FUNC_USELOCALE])
50 AC_DEFINE([HAVE_C99_STRTOLD], [1],
51 [Define to 1 because the gnulib 'strtold' module provides a C99-conforming strtold function.])
52 AC_CHECK_FUNCS([strtold_l]) 50 AC_CHECK_FUNCS([strtold_l])
53 ]) 51 ])