]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Remove private _PyLong_FileDescriptor_Converter() (#108503)
authorVictor Stinner <vstinner@python.org>
Sat, 26 Aug 2023 01:18:09 +0000 (03:18 +0200)
committerGitHub <noreply@github.com>
Sat, 26 Aug 2023 01:18:09 +0000 (03:18 +0200)
commit6353c21b78a3d91e7cd7810f1c00258a34e85fe7
treefdb9e8068ae4f9fd472718cea32dab935b5064a6
parent713afb8804666405f29115cf459b591308e3ab54
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.
13 files changed:
Include/cpython/fileobject.h
Include/cpython/longobject.h
Include/internal/pycore_fileutils.h
Include/internal/pycore_long.h
Modules/clinic/_winapi.c.h
Modules/clinic/fcntlmodule.c.h
Modules/clinic/posixmodule.c.h
Modules/clinic/selectmodule.c.h
Modules/clinic/termios.c.h
Modules/fcntlmodule.c
Modules/termios.c
Tools/c-analyzer/c_parser/preprocessor/gcc.py
Tools/clinic/clinic.py