fileutils.h 597 B

123456789101112131415161718192021222324252627282930
  1. #ifndef Py_FILEUTILS_H
  2. #define Py_FILEUTILS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
  7. PyAPI_FUNC(wchar_t *) Py_DecodeLocale(
  8. const char *arg,
  9. size_t *size);
  10. PyAPI_FUNC(char*) Py_EncodeLocale(
  11. const wchar_t *text,
  12. size_t *error_pos);
  13. PyAPI_FUNC(char*) _Py_EncodeLocaleRaw(
  14. const wchar_t *text,
  15. size_t *error_pos);
  16. #endif
  17. #ifndef Py_LIMITED_API
  18. # define Py_CPYTHON_FILEUTILS_H
  19. # include "cpython/fileutils.h"
  20. # undef Py_CPYTHON_FILEUTILS_H
  21. #endif
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* !Py_FILEUTILS_H */