+2010-07-13 Bruno Haible <bruno@clisp.org>
+
+ strtod: Add safety check.
+ * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
+
2010-07-12 Bruno Haible <bruno@clisp.org>
Unify tests that set gl_cv_func_ldexpl_no_libm.
#if !HAVE_LDEXP_IN_LIBC
#define ldexp dummy_ldexp
- static double ldexp (double x, int exponent) { return x + exponent; }
+ /* A dummy definition that will never be invoked. */
+ static double ldexp (double x _GL_UNUSED, int exponent _GL_UNUSED)
+ {
+ abort ();
+ return 0.0;
+ }
#endif
/* Return X * BASE**EXPONENT. Return an extreme value and set errno