mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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.
This commit is contained in:
parent
fc75bfb8be
commit
ea1a54506b
13 changed files with 289 additions and 258 deletions
|
|
@ -4,11 +4,16 @@
|
|||
have any value except INVALID_SOCKET.
|
||||
*/
|
||||
|
||||
#ifndef Py_BUILD_CORE_BUILTIN
|
||||
# define Py_BUILD_CORE_MODULE 1
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_POLL_H) && !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_fileutils.h" // _Py_set_inheritable()
|
||||
#include "structmember.h" // PyMemberDef
|
||||
|
||||
#ifdef HAVE_SYS_DEVPOLL_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue