commit | bd16edd305ba8067615e703a2cfeeb33907f40b8 | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Wed May 20 22:05:25 2009 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Wed May 20 22:05:25 2009 +0000 |
tree | 6c167711c3e67a713c0bfc27eeef1e530816bdd9 | |
parent | 4db6ff683d1b1d6e6c6bef875a88c9121c68137d [diff] [blame] |
Refactor to remove duplicated nan/inf parsing code in pystrtod.c, floatobject.c and dtoa.c.
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 @@ 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 */