pycore_sysmodule.h 734 B

1234567891011121314151617181920212223242526272829
  1. #ifndef Py_INTERNAL_SYSMODULE_H
  2. #define Py_INTERNAL_SYSMODULE_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #ifndef Py_BUILD_CORE
  7. # error "this header requires Py_BUILD_CORE define"
  8. #endif
  9. PyAPI_FUNC(int) _PySys_Audit(
  10. PyThreadState *tstate,
  11. const char *event,
  12. const char *argFormat,
  13. ...);
  14. /* We want minimal exposure of this function, so use extern rather than
  15. PyAPI_FUNC() to not export the symbol. */
  16. extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
  17. PyAPI_FUNC(int) _PySys_SetAttr(PyObject *, PyObject *);
  18. extern int _PySys_ClearAttrString(PyInterpreterState *interp,
  19. const char *name, int verbose);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* !Py_INTERNAL_SYSMODULE_H */