summaryrefslogtreecommitdiffstats
path: root/Include/pystrtod.h
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-05-20 22:05:25 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-05-20 22:05:25 (GMT)
commitbd16edd305ba8067615e703a2cfeeb33907f40b8 (patch)
tree6c167711c3e67a713c0bfc27eeef1e530816bdd9 /Include/pystrtod.h
parent4db6ff683d1b1d6e6c6bef875a88c9121c68137d (diff)
downloadcpython-bd16edd305ba8067615e703a2cfeeb33907f40b8.zip
cpython-bd16edd305ba8067615e703a2cfeeb33907f40b8.tar.gz
cpython-bd16edd305ba8067615e703a2cfeeb33907f40b8.tar.bz2
Refactor to remove duplicated nan/inf parsing code in
pystrtod.c, floatobject.c and dtoa.c.
Diffstat (limited to 'Include/pystrtod.h')
-rw-r--r--Include/pystrtod.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pystrtod.h b/Include/pystrtod.h
index abf9930..b1d8786 100644
--- a/Include/pystrtod.h
+++ b/Include/pystrtod.h
@@ -21,6 +21,8 @@ PyAPI_FUNC(char *) PyOS_double_to_string(double val,
int flags,
int *type);
+PyAPI_FUNC(double) _Py_parse_inf_or_nan(const char *p, char **endptr);
+
/* PyOS_double_to_string's "flags" parameter can be set to 0 or more of: */
#define Py_DTSF_SIGN 0x01 /* always add the sign */