You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
916 B

36 years ago
  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(char *);
  8. PyAPI_FUNC(int) PySys_SetObject(char *, PyObject *);
  9. PyAPI_FUNC(FILE *) PySys_GetFile(char *, FILE *);
  10. PyAPI_FUNC(void) PySys_SetArgv(int, char **);
  11. PyAPI_FUNC(void) PySys_SetArgvEx(int, char **, int);
  12. PyAPI_FUNC(void) PySys_SetPath(char *);
  13. PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
  14. Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  15. PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
  16. Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  17. PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
  18. PyAPI_DATA(int) _PySys_CheckInterval;
  19. PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
  20. PyAPI_FUNC(void) PySys_AddWarnOption(char *);
  21. PyAPI_FUNC(int) PySys_HasWarnOptions(void);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* !Py_SYSMODULE_H */