Victor Stinner | 4e31443 | 2010-10-07 21:45:39 +0000 | [diff] [blame] | 1 | #ifndef Py_FILEUTILS_H |
| 2 | #define Py_FILEUTILS_H |
Victor Stinner | 4e31443 | 2010-10-07 21:45:39 +0000 | [diff] [blame] | 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
Victor Stinner | 9fc57a3 | 2018-11-07 00:44:03 +0100 | [diff] [blame] | 7 | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000 |
| 8 | PyAPI_FUNC(wchar_t *) Py_DecodeLocale( |
| 9 | const char *arg, |
| 10 | size_t *size); |
| 11 | |
| 12 | PyAPI_FUNC(char*) Py_EncodeLocale( |
| 13 | const wchar_t *text, |
| 14 | size_t *error_pos); |
| 15 | |
| 16 | PyAPI_FUNC(char*) _Py_EncodeLocaleRaw( |
| 17 | const wchar_t *text, |
| 18 | size_t *error_pos); |
| 19 | #endif |
| 20 | |
Serhiy Storchaka | 12ebbc7 | 2015-02-22 19:39:36 +0200 | [diff] [blame] | 21 | #ifndef Py_LIMITED_API |
Victor Stinner | 8c3aee6 | 2020-02-12 23:55:09 +0100 | [diff] [blame] | 22 | # define Py_CPYTHON_FILEUTILS_H |
| 23 | # include "cpython/fileutils.h" |
| 24 | # undef Py_CPYTHON_FILEUTILS_H |
Stéphane Wirtel | 74a8b6e | 2018-10-18 01:05:04 +0200 | [diff] [blame] | 25 | #endif |
| 26 | |
Victor Stinner | 4e31443 | 2010-10-07 21:45:39 +0000 | [diff] [blame] | 27 | #ifdef __cplusplus |
| 28 | } |
| 29 | #endif |
Victor Stinner | 4e31443 | 2010-10-07 21:45:39 +0000 | [diff] [blame] | 30 | #endif /* !Py_FILEUTILS_H */ |