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(int) _PySys_GetOptionalAttr(PyObject *, PyObject **);
12 PyAPI_FUNC(int) _PySys_GetOptionalAttrString(const char *, PyObject **);
13 PyAPI_FUNC(PyObject *) _PySys_GetRequiredAttr(PyObject *);
14 PyAPI_FUNC(PyObject *) _PySys_GetRequiredAttrString(const char *);
15
16 // Export for '_pickle' shared extension
17 PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);
18
19 extern int _PySys_SetAttr(PyObject *, PyObject *);
20
21 extern int _PySys_ClearAttrString(PyInterpreterState *interp,
22 const char *name, int verbose);
23
24 extern int _PySys_SetFlagObj(Py_ssize_t pos, PyObject *new_value);
25 extern int _PySys_SetIntMaxStrDigits(int maxdigits);
26
27 extern int _PySysRemoteDebug_SendExec(int pid, int tid, const char *debugger_script_path);
28
29 #ifdef __cplusplus
30 }
31 #endif
32 #endif /* !Py_INTERNAL_SYSMODULE_H */