From 6353c21b78a3d91e7cd7810f1c00258a34e85fe7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 26 Aug 2023 03:18:09 +0200 Subject: gh-106320: Remove private _PyLong_FileDescriptor_Converter() (#108503) Move the private _PyLong converter functions to the internal C API * _PyLong_FileDescriptor_Converter(): moved to pycore_fileutils.h * _PyLong_Size_t_Converter(): moved to pycore_long.h Argument Clinic now emits includes for pycore_fileutils.h and pycore_long.h when these functions are used. --- Include/internal/pycore_fileutils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include/internal/pycore_fileutils.h') diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h index 90c0878a3ee..f6e625870de 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -312,6 +312,9 @@ extern HRESULT PathCchSkipRoot(const wchar_t *pszPath, const wchar_t **ppszRootE # define _Py_END_SUPPRESS_IPH #endif /* _MSC_VER >= 1900 */ +// Export for 'select' shared extension (Argument Clinic code) +PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *); + #ifdef __cplusplus } #endif -- cgit v1.2.3