summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_floatobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 17:09:49 (GMT)
committerGitHub <noreply@github.com>2023-08-24 17:09:49 (GMT)
commitbbbe1faf7bc6860d4a628e204db944b81dfdbd73 (patch)
treed347cf7841d2476b2d1321ab25db6dcf6aa131cc /Include/internal/pycore_floatobject.h
parent773b803c02b25b58af0a64321fbe1c6bf45cba2b (diff)
downloadcpython-bbbe1faf7bc6860d4a628e204db944b81dfdbd73.zip
cpython-bbbe1faf7bc6860d4a628e204db944b81dfdbd73.tar.gz
cpython-bbbe1faf7bc6860d4a628e204db944b81dfdbd73.tar.bz2
gh-106320: Remove private float C API functions (#108430)
106320: Remove private float C API functions Remove private C API functions: * _Py_parse_inf_or_nan() * _Py_string_to_number_with_underscores() Move these functions to the internal C API and no longer export them.
Diffstat (limited to 'Include/internal/pycore_floatobject.h')
-rw-r--r--Include/internal/pycore_floatobject.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/internal/pycore_floatobject.h b/Include/internal/pycore_floatobject.h
index 6b9af03..4e54748 100644
--- a/Include/internal/pycore_floatobject.h
+++ b/Include/internal/pycore_floatobject.h
@@ -67,6 +67,13 @@ extern int _PyFloat_FormatAdvancedWriter(
Py_ssize_t start,
Py_ssize_t end);
+extern PyObject* _Py_string_to_number_with_underscores(
+ const char *str, Py_ssize_t len, const char *what, PyObject *obj, void *arg,
+ PyObject *(*innerfunc)(const char *, Py_ssize_t, void *));
+
+extern double _Py_parse_inf_or_nan(const char *p, char **endptr);
+
+
#ifdef __cplusplus
}
#endif