bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new snapshot available: coreutils-6.12.208-2441


From: Eric Blake
Subject: Re: new snapshot available: coreutils-6.12.208-2441
Date: Sat, 27 Sep 2008 18:46:13 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 9/27/2008 6:34 PM:
> This needs fixing (hmm, gnulib doesn't yet have a strtold module;
> time to start factoring strtod to long double):

Or maybe we go with this lighter-weight patch, which matches the
inaccuracies already present in c-strtold?  (ie. without a strtold module,
this is not a regression, since c-strtold did the same hack)

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkje09UACgkQ84KuGfSFAYABLACaA/ZdTmd7QG3hmcXMegPxoKV9
ZCwAn2gFEPYA75c+x7b3pp4ZF1+xl6az
=I4IV
-----END PGP SIGNATURE-----
From 022f3d3daa3356a4a80307e7e219b8df279f1614 Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Sat, 27 Sep 2008 18:44:08 -0600
Subject: [PATCH] seq: work around missing strtold

* src/seq.c (strtold) [!HAVE_C99_STRTOLD]: Fall back to strtod.

Signed-off-by: Eric Blake <address@hidden>
---
 src/seq.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/seq.c b/src/seq.c
index b5f0651..0e1f097 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -35,6 +35,14 @@
 # define isfinite(x) ((x) * 0 == 0)
 #endif
 
+#if !HAVE_C99_STRTOLD
+static long double
+strtold (char const *nptr, char **endptr)
+{
+  return strtod (nptr, endptr);
+}
+#endif
+
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "seq"
 
-- 
1.6.0.2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]