Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-19 09:50:50

0001 #ifndef Py_INTERNAL_SYSMODULE_H
0002 #define Py_INTERNAL_SYSMODULE_H
0003 #ifdef __cplusplus
0004 extern "C" {
0005 #endif
0006 
0007 #ifndef Py_BUILD_CORE
0008 #  error "this header requires Py_BUILD_CORE define"
0009 #endif
0010 
0011 PyAPI_FUNC(PyObject *) _PySys_GetAttr(PyThreadState *, PyObject *); /* unused */
0012 PyAPI_FUNC(int) _PySys_GetOptionalAttr(PyObject *, PyObject **);
0013 PyAPI_FUNC(int) _PySys_GetOptionalAttrString(const char *, PyObject **);
0014 PyAPI_FUNC(PyObject *) _PySys_GetRequiredAttr(PyObject *);
0015 PyAPI_FUNC(PyObject *) _PySys_GetRequiredAttrString(const char *);
0016 
0017 // Export for '_pickle' shared extension
0018 PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);
0019 
0020 extern int _PySys_Audit(
0021     PyThreadState *tstate,
0022     const char *event,
0023     const char *argFormat,
0024     ...);
0025 
0026 // _PySys_ClearAuditHooks() must not be exported: use extern rather than
0027 // PyAPI_FUNC(). We want minimal exposure of this function.
0028 extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
0029 
0030 extern int _PySys_SetAttr(PyObject *, PyObject *);
0031 
0032 extern int _PySys_ClearAttrString(PyInterpreterState *interp,
0033                                   const char *name, int verbose);
0034 
0035 #ifdef __cplusplus
0036 }
0037 #endif
0038 #endif /* !Py_INTERNAL_SYSMODULE_H */