sysmodule.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* System module interface */
  2. #ifndef Py_SYSMODULE_H
  3. #define Py_SYSMODULE_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. PyAPI_FUNC(PyObject *) PySys_GetObject(const char *);
  8. PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
  9. #ifndef Py_LIMITED_API
  10. PyAPI_FUNC(PyObject *) _PySys_GetObjectId(_Py_Identifier *key);
  11. PyAPI_FUNC(int) _PySys_SetObjectId(_Py_Identifier *key, PyObject *);
  12. #endif
  13. PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
  14. PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
  15. PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
  16. PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
  17. Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  18. PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
  19. Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  20. PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
  21. PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
  22. PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
  23. PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
  24. PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
  25. PyAPI_FUNC(int) PySys_HasWarnOptions(void);
  26. PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
  27. PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
  28. #ifndef Py_LIMITED_API
  29. PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);
  30. #endif
  31. #ifdef Py_BUILD_CORE
  32. PyAPI_FUNC(int) _PySys_AddXOptionWithError(const wchar_t *s);
  33. PyAPI_FUNC(int) _PySys_AddWarnOptionWithError(PyObject *option);
  34. #endif
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif /* !Py_SYSMODULE_H */