sysmodule.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
  10. PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
  11. PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
  12. PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
  13. Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  14. PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
  15. Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  16. PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
  17. PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
  18. PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
  19. PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
  20. PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
  21. PyAPI_FUNC(int) PySys_HasWarnOptions(void);
  22. PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
  23. PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
  24. #ifndef Py_LIMITED_API
  25. # define Py_CPYTHON_SYSMODULE_H
  26. # include "cpython/sysmodule.h"
  27. # undef Py_CPYTHON_SYSMODULE_H
  28. #endif
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif /* !Py_SYSMODULE_H */