]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46303: Move fileutils.h private functions to internal C API (GH-30484)
authorVictor Stinner <vstinner@python.org>
Tue, 11 Jan 2022 10:56:16 +0000 (11:56 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Jan 2022 10:56:16 +0000 (11:56 +0100)
commitea1a54506b4ac38b712ba63ec884292025f16111
tree752bad07fb725dd178e2d79e4dedf23b74dcdd34
parentfc75bfb8be8494e22123f2c14d1ab497c77cc22d
bpo-46303: Move fileutils.h private functions to internal C API (GH-30484)

Move almost all private functions of Include/cpython/fileutils.h to
the internal C API Include/internal/pycore_fileutils.h.

Only keep _Py_fopen_obj() in Include/cpython/fileutils.h, since it's
used by _testcapi which must not use the internal C API.

Move EncodeLocaleEx() and DecodeLocaleEx() functions from _testcapi
to _testinternalcapi, since the C API moved to the internal C API.
13 files changed:
Include/cpython/fileutils.h
Include/internal/pycore_fileutils.h
Include/internal/pycore_unicodeobject.h
Lib/test/test_codecs.py
Modules/_testcapimodule.c
Modules/_testinternalcapi.c
Modules/_tracemalloc.c
Modules/mmapmodule.c
Modules/ossaudiodev.c
Modules/selectmodule.c
Modules/socketmodule.c
Programs/_freeze_module.c
Python/bootstrap_hash.c