Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-12-06 21:58:51 +0300
committerJeff Johnston <jjohnstn@redhat.com>2002-12-06 21:58:51 +0300
commitc049dd5a782f36ca5f6eeb39e110d5774631aa1c (patch)
tree42a17e5eac109ebf1ada11bff536938b4d83e71c /newlib/libm
parente25e377eb323e9ac6f6ea3b23f57a68293be2ae9 (diff)
2002-12-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdlib.h (strtof): New prototype (from C99). (strtodf): Changed from prototype to macro which redefines to strtof. * libc/stdlib/atof.c: Change documentation to refer to strtof instead of strtodf. * libc/stdlib/atoff.c (atoff): Change to call strtof instead of strtodf. * libc/stdlib/strtod.c (strtodf): Renamed to strtof. (strtof): New function. * libm/test/convert.c (test_strtodf): Renamed to test_strtof which calls strtof.
Diffstat (limited to 'newlib/libm')
-rw-r--r--newlib/libm/test/convert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libm/test/convert.c b/newlib/libm/test/convert.c
index 51bddfdfe..a74828027 100644
--- a/newlib/libm/test/convert.c
+++ b/newlib/libm/test/convert.c
@@ -24,12 +24,12 @@ _DEFUN_VOID(test_strtod)
}
void
-_DEFUN_VOID(test_strtodf)
+_DEFUN_VOID(test_strtof)
{
char *tail;
double v;
/* On average we'll loose 1/2 a bit, so the test is for within 1 bit */
- v = strtodf(pd->string, &tail);
+ v = strtof(pd->string, &tail);
test_mok(v, pd->value, 32);
test_iok(tail - pd->string, pd->endscan);
}
@@ -358,7 +358,7 @@ _DEFUN_VOID(test_cvt)
iterate(test_atof, "atof");
iterate(test_atoff, "atoff");
- iterate(test_strtodf, "strtodf");
+ iterate(test_strtof, "strtof");
int_iterate(test_atoi,"atoi");
int_iterate(test_atol,"atol");