mirror of
https://github.com/python/cpython.git
synced 2025-12-13 04:16:07 +00:00
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.
8 lines
232 B
C
8 lines
232 B
C
#ifndef Py_CPYTHON_FILEUTILS_H
|
|
# error "this header file must not be included directly"
|
|
#endif
|
|
|
|
// Used by _testcapi which must not use the internal C API
|
|
PyAPI_FUNC(FILE*) _Py_fopen_obj(
|
|
PyObject *path,
|
|
const char *mode);
|