jpayne@69: jpayne@69: /* System module interface */ jpayne@69: jpayne@69: #ifndef Py_SYSMODULE_H jpayne@69: #define Py_SYSMODULE_H jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: PyAPI_FUNC(PyObject *) PySys_GetObject(const char *); jpayne@69: PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *); jpayne@69: jpayne@69: PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **); jpayne@69: PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int); jpayne@69: PyAPI_FUNC(void) PySys_SetPath(const wchar_t *); jpayne@69: jpayne@69: PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...) jpayne@69: Py_GCC_ATTRIBUTE((format(printf, 1, 2))); jpayne@69: PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...) jpayne@69: Py_GCC_ATTRIBUTE((format(printf, 1, 2))); jpayne@69: PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...); jpayne@69: PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...); jpayne@69: jpayne@69: PyAPI_FUNC(void) PySys_ResetWarnOptions(void); jpayne@69: PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *); jpayne@69: PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *); jpayne@69: PyAPI_FUNC(int) PySys_HasWarnOptions(void); jpayne@69: jpayne@69: PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *); jpayne@69: PyAPI_FUNC(PyObject *) PySys_GetXOptions(void); jpayne@69: jpayne@69: #ifndef Py_LIMITED_API jpayne@69: # define Py_CPYTHON_SYSMODULE_H jpayne@69: # include "cpython/sysmodule.h" jpayne@69: # undef Py_CPYTHON_SYSMODULE_H jpayne@69: #endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: #endif /* !Py_SYSMODULE_H */