Debian Codegraph @

Include/internal/pycore_sysmodule.h

raw
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 PyAPI_FUNC(PyObject *) _PySys_GetAttr(PyThreadState *, PyObject *); /* unused */
12 PyAPI_FUNC(int) _PySys_GetOptionalAttr(PyObject *, PyObject **);
13 PyAPI_FUNC(int) _PySys_GetOptionalAttrString(const char *, PyObject **);
14 PyAPI_FUNC(PyObject *) _PySys_GetRequiredAttr(PyObject *);
15 PyAPI_FUNC(PyObject *) _PySys_GetRequiredAttrString(const char *);
16
17 // Export for '_pickle' shared extension
18 PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);
19
20 extern int _PySys_Audit(
21 PyThreadState *tstate,
22 const char *event,
23 const char *argFormat,
24 ...);
25
26 // _PySys_ClearAuditHooks() must not be exported: use extern rather than
27 // PyAPI_FUNC(). We want minimal exposure of this function.
28 extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
29
30 extern int _PySys_SetAttr(PyObject *, PyObject *);
31
32 extern int _PySys_ClearAttrString(PyInterpreterState *interp,
33 const char *name, int verbose);
34
35 #ifdef __cplusplus
36 }
37 #endif
38 #endif /* !Py_INTERNAL_SYSMODULE_H */