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