/Include/sysmodule.h

http://unladen-swallow.googlecode.com/ · C++ Header · 31 lines · 23 code · 7 blank · 1 comment · 0 complexity · 0ee36d63afd7b59594cf1f3c6de8db6c MD5 · raw file

  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_SetPath(char *);
  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_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
  17. PyAPI_DATA(int) _PySys_CheckInterval;
  18. PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
  19. PyAPI_FUNC(void) PySys_AddWarnOption(char *);
  20. PyAPI_FUNC(int) PySys_HasWarnOptions(void);
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif /* !Py_SYSMODULE_H */