2020-03-26 14:57:32 -03:00
|
|
|
#ifndef Py_INTERNAL_SYSMODULE_H
|
|
|
|
#define Py_INTERNAL_SYSMODULE_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
|
|
#endif
|
|
|
|
|
2023-08-24 17:02:09 -03:00
|
|
|
// Export for '_pickle' shared extension
|
|
|
|
PyAPI_FUNC(PyObject*) _PySys_GetAttr(PyThreadState *tstate, PyObject *name);
|
|
|
|
|
|
|
|
// Export for '_pickle' shared extension
|
|
|
|
PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);
|
|
|
|
|
2023-07-24 23:25:45 -03:00
|
|
|
extern int _PySys_Audit(
|
2020-03-26 14:57:32 -03:00
|
|
|
PyThreadState *tstate,
|
|
|
|
const char *event,
|
|
|
|
const char *argFormat,
|
|
|
|
...);
|
|
|
|
|
2023-08-24 12:40:56 -03:00
|
|
|
// _PySys_ClearAuditHooks() must not be exported: use extern rather than
|
|
|
|
// PyAPI_FUNC(). We want minimal exposure of this function.
|
2020-03-26 14:57:32 -03:00
|
|
|
extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
|
|
|
|
|
2023-07-24 23:25:45 -03:00
|
|
|
extern int _PySys_SetAttr(PyObject *, PyObject *);
|
2022-02-08 16:39:07 -04:00
|
|
|
|
2023-02-15 18:32:31 -04:00
|
|
|
extern int _PySys_ClearAttrString(PyInterpreterState *interp,
|
|
|
|
const char *name, int verbose);
|
|
|
|
|
2024-09-02 18:25:08 -03:00
|
|
|
extern int _PySys_SetFlagObj(Py_ssize_t pos, PyObject *new_value);
|
|
|
|
extern int _PySys_SetIntMaxStrDigits(int maxdigits);
|
|
|
|
|
2020-03-26 14:57:32 -03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_INTERNAL_SYSMODULE_H */
|