Use emyg_atod instead of emyg_strtod
This commit is contained in:
parent
5116220d62
commit
fa2b72b020
|
@ -736,6 +736,11 @@ no_conv:
|
||||||
return minus ? -res : res;
|
return minus ? -res : res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double emyg_atod (const char *nptr)
|
||||||
|
{
|
||||||
|
return emyg_strtod(nptr, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef TESTING_QUOREM
|
#ifdef TESTING_QUOREM
|
||||||
|
|
||||||
int main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
|
|
|
@ -7,6 +7,8 @@ extern "C" {
|
||||||
|
|
||||||
double emyg_strtod (const char *nptr, char **endptr);
|
double emyg_strtod (const char *nptr, char **endptr);
|
||||||
|
|
||||||
|
double emyg_atod (const char *nptr);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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_SRCS += contrib/10.roundtrip/emyg_dtoa.c \
|
||||||
contrib/10.roundtrip/emyg_atod.c
|
contrib/10.roundtrip/emyg_atod.c
|
||||||
|
|
Loading…
Reference in New Issue