summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorKyle Evans <kevans91@users.noreply.github.com>2020-10-13 20:04:44 (GMT)
committerGitHub <noreply@github.com>2020-10-13 20:04:44 (GMT)
commit7992579cd27f14f472acc37aca537eec55f681ef (patch)
tree5d738707fbf658dcbd2ddc6aaf0cf107b92bec45 /Include
parent8b2ff4c03d150c43df3e8438d323b7f7bfe3353c (diff)
downloadcpython-7992579cd27f14f472acc37aca537eec55f681ef.zip
cpython-7992579cd27f14f472acc37aca537eec55f681ef.tar.gz
cpython-7992579cd27f14f472acc37aca537eec55f681ef.tar.bz2
bpo-40422: Move _Py_closerange to fileutils.c (GH-22680)
This API is relatively lightweight and organizationally, given that it's used by multiple modules, it makes sense to move it to fileutils. Requires making sure that _posixsubprocess is compiled with the appropriate Py_BUIILD_CORE_BUILTIN macro.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_fileutils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h
index bbee586..9cb5fc6 100644
--- a/Include/internal/pycore_fileutils.h
+++ b/Include/internal/pycore_fileutils.h
@@ -48,6 +48,8 @@ PyAPI_FUNC(int) _Py_GetLocaleconvNumeric(
PyObject **decimal_point,
PyObject **thousands_sep);
+PyAPI_FUNC(void) _Py_closerange(int first, int last);
+
#ifdef __cplusplus
}
#endif