1 #ifndef Py_INTERNAL_SYSMODULE_H 2 #define Py_INTERNAL_SYSMODULE_H 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 7 #ifndef Py_BUILD_CORE 8 # error "this header requires Py_BUILD_CORE define" 9 #endif 10 11 // Export for '_pickle' shared extension 12 PyAPI_FUNC(PyObject*) _PySys_GetAttr(PyThreadState *tstate, PyObject *name); 13 14 // Export for '_pickle' shared extension 15 PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *); 16 17 extern int _PySys_Audit( 18 PyThreadState *tstate, 19 const char *event, 20 const char *argFormat, 21 ...); 22 23 // _PySys_ClearAuditHooks() must not be exported: use extern rather than 24 // PyAPI_FUNC(). We want minimal exposure of this function. 25 extern void _PySys_ClearAuditHooks(PyThreadState *tstate); 26 27 extern int _PySys_SetAttr(PyObject *, PyObject *); 28 29 extern int _PySys_ClearAttrString(PyInterpreterState *interp, 30 const char *name, int verbose); 31 32 #ifdef __cplusplus 33 } 34 #endif 35 #endif /* !Py_INTERNAL_SYSMODULE_H */ 36