diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-26 03:18:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-26 03:18:09 +0200 |
commit | 6353c21b78a3d91e7cd7810f1c00258a34e85fe7 (patch) | |
tree | fdb9e8068ae4f9fd472718cea32dab935b5064a6 /Include/internal/pycore_fileutils.h | |
parent | 713afb8804666405f29115cf459b591308e3ab54 (diff) | |
download | cpython-6353c21b78a3d91e7cd7810f1c00258a34e85fe7.tar.gz cpython-6353c21b78a3d91e7cd7810f1c00258a34e85fe7.zip |
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.
Diffstat (limited to 'Include/internal/pycore_fileutils.h')
-rw-r--r-- | Include/internal/pycore_fileutils.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |