mirror of
https://github.com/python/cpython.git
synced 2025-11-01 22:21:35 +00:00
No longer export _PyUnicode_FromId() internal C API function. Change comment style to "// comment" and add comment explaining why other functions have to be exported. Update Tools/build/generate_token.py to update Include/internal/pycore_token.h comments.
29 lines
740 B
C
29 lines
740 B
C
#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
|
|
|
|
extern int _PySys_Audit(
|
|
PyThreadState *tstate,
|
|
const char *event,
|
|
const char *argFormat,
|
|
...);
|
|
|
|
// _PySys_ClearAuditHooks() must not be exported: use extern rather than
|
|
// PyAPI_FUNC(). We want minimal exposure of this function.
|
|
extern void _PySys_ClearAuditHooks(PyThreadState *tstate);
|
|
|
|
extern int _PySys_SetAttr(PyObject *, PyObject *);
|
|
|
|
extern int _PySys_ClearAttrString(PyInterpreterState *interp,
|
|
const char *name, int verbose);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_INTERNAL_SYSMODULE_H */
|