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 */