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