Use emyg_atod instead of emyg_strtod

This commit is contained in:
Doug Currie 2016-01-09 00:15:49 -05:00
parent 5116220d62
commit fa2b72b020
3 changed files with 8 additions and 1 deletions

View File

@ -736,6 +736,11 @@ no_conv:
return minus ? -res : res;
}
double emyg_atod (const char *nptr)
{
return emyg_strtod(nptr, NULL);
}
#ifdef TESTING_QUOREM
int main (int argc, char **argv)

View File

@ -7,6 +7,8 @@ extern "C" {
double emyg_strtod (const char *nptr, char **endptr);
double emyg_atod (const char *nptr);
#ifdef __cplusplus
}
#endif

View File

@ -1,4 +1,4 @@
CONTRIB_DEFS += -DPIC_CSTRING_TO_DOUBLE=emyg_strtod -DPIC_DOUBLE_TO_CSTRING=emyg_dtoa
CONTRIB_DEFS += -DPIC_CSTRING_TO_DOUBLE=emyg_atod -DPIC_DOUBLE_TO_CSTRING=emyg_dtoa
CONTRIB_SRCS += contrib/10.roundtrip/emyg_dtoa.c \
contrib/10.roundtrip/emyg_atod.c