sysmodule.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #ifndef Py_LIMITED_API
  9. PyAPI_FUNC(PyObject *) _PySys_GetObjectId(_Py_Identifier *key);
  10. #endif
  11. PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
  12. PyAPI_FUNC(int) _PySys_SetObjectId(_Py_Identifier *key, PyObject *);
  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 __cplusplus
  32. }
  33. #endif
  34. #endif /* !Py_SYSMODULE_H */