2010-10-07 21:45:39 +00:00
|
|
|
#ifndef Py_FILEUTILS_H
|
|
|
|
#define Py_FILEUTILS_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-12-27 12:57:39 +00:00
|
|
|
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
|
2014-08-01 10:28:48 +00:00
|
|
|
PyAPI_FUNC(wchar_t *) Py_DecodeLocale(
|
2010-10-16 23:16:16 +00:00
|
|
|
const char *arg,
|
|
|
|
size_t *size);
|
2010-10-07 21:45:39 +00:00
|
|
|
|
2014-08-01 10:28:48 +00:00
|
|
|
PyAPI_FUNC(char*) Py_EncodeLocale(
|
2010-11-08 22:43:46 +00:00
|
|
|
const wchar_t *text,
|
|
|
|
size_t *error_pos);
|
2016-12-27 12:57:39 +00:00
|
|
|
#endif
|
2010-10-07 21:45:39 +00:00
|
|
|
|
2015-02-22 17:39:36 +00:00
|
|
|
#ifndef Py_LIMITED_API
|
2020-02-12 22:55:09 +00:00
|
|
|
# define Py_CPYTHON_FILEUTILS_H
|
2021-10-14 23:50:04 +00:00
|
|
|
# include "cpython/fileutils.h"
|
2020-02-12 22:55:09 +00:00
|
|
|
# undef Py_CPYTHON_FILEUTILS_H
|
2018-10-17 23:05:04 +00:00
|
|
|
#endif
|
|
|
|
|
2010-10-07 21:45:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_FILEUTILS_H */
|