svn commit: trunk/uClibc/libc/stdlib

psm at uclibc.org psm at uclibc.org
Thu Dec 8 19:09:18 UTC 2005


Author: psm
Date: 2005-12-08 11:08:43 -0800 (Thu, 08 Dec 2005)
New Revision: 12754

Log:
Use __strtod

Modified:
   trunk/uClibc/libc/stdlib/stdlib.c
   trunk/uClibc/libc/stdlib/strtof.c
   trunk/uClibc/libc/stdlib/strtold.c


Changeset:
Modified: trunk/uClibc/libc/stdlib/stdlib.c
===================================================================
--- trunk/uClibc/libc/stdlib/stdlib.c	2005-12-08 19:03:44 UTC (rev 12753)
+++ trunk/uClibc/libc/stdlib/stdlib.c	2005-12-08 19:08:43 UTC (rev 12754)
@@ -201,9 +201,13 @@
 /**********************************************************************/
 #ifdef L_atof
 
+extern double __strtod (__const char *__restrict __nptr,
+		      char **__restrict __endptr)
+     __THROW __nonnull ((1)) __wur attribute_hidden;
+
 double atof(const char *nptr)
 {
-	return strtod(nptr, (char **) NULL);
+	return __strtod(nptr, (char **) NULL);
 }
 
 #endif

Modified: trunk/uClibc/libc/stdlib/strtof.c
===================================================================
--- trunk/uClibc/libc/stdlib/strtof.c	2005-12-08 19:03:44 UTC (rev 12753)
+++ trunk/uClibc/libc/stdlib/strtof.c	2005-12-08 19:08:43 UTC (rev 12754)
@@ -23,6 +23,8 @@
  * to an internal conversion from a double to a float, thereby wasting a bunch
  * of precision.  But this is small, and works for now... */
 
+#define strtod __strtod
+
 #include <stdlib.h>
 
 float strtof (const char *str, char **endptr)

Modified: trunk/uClibc/libc/stdlib/strtold.c
===================================================================
--- trunk/uClibc/libc/stdlib/strtold.c	2005-12-08 19:03:44 UTC (rev 12753)
+++ trunk/uClibc/libc/stdlib/strtold.c	2005-12-08 19:08:43 UTC (rev 12754)
@@ -23,6 +23,8 @@
  * to an internal conversion from a double to a long double, thereby losing
  * tons of precision.  But this is small, and works for now... */
 
+#define strtod __strtod
+
 #include <stdlib.h>
 
 long double strtold (const char *str, char **endptr)




More information about the uClibc-cvs mailing list