summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-22 21:35:27 (GMT)
committerGitHub <noreply@github.com>2023-07-22 21:35:27 (GMT)
commit0927a2b25c059988e237108605ed8ab0c5459c53 (patch)
tree7206194adb7cf5dd1030f645b2a23cbd6e0cfad1 /Python/pystate.c
parentb7dc795dfd175c0d25a479cfaf94a13c368a5a7b (diff)
downloadcpython-0927a2b25c059988e237108605ed8ab0c5459c53.zip
cpython-0927a2b25c059988e237108605ed8ab0c5459c53.tar.gz
cpython-0927a2b25c059988e237108605ed8ab0c5459c53.tar.bz2
GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069)
Rename private C API constants: * Rename PY_MONITORING_UNGROUPED_EVENTS to _PY_MONITORING_UNGROUPED_EVENTS * Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index a9b404b..cdd975f 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -679,11 +679,11 @@ init_interpreter(PyInterpreterState *interp,
_PyGC_InitState(&interp->gc);
PyConfig_InitPythonConfig(&interp->config);
_PyType_InitCache(interp);
- for (int i = 0; i < PY_MONITORING_UNGROUPED_EVENTS; i++) {
+ for (int i = 0; i < _PY_MONITORING_UNGROUPED_EVENTS; i++) {
interp->monitors.tools[i] = 0;
}
for (int t = 0; t < PY_MONITORING_TOOL_IDS; t++) {
- for (int e = 0; e < PY_MONITORING_EVENTS; e++) {
+ for (int e = 0; e < _PY_MONITORING_EVENTS; e++) {
interp->monitoring_callables[t][e] = NULL;
}
@@ -841,11 +841,11 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
Py_CLEAR(interp->audit_hooks);
- for (int i = 0; i < PY_MONITORING_UNGROUPED_EVENTS; i++) {
+ for (int i = 0; i < _PY_MONITORING_UNGROUPED_EVENTS; i++) {
interp->monitors.tools[i] = 0;
}
for (int t = 0; t < PY_MONITORING_TOOL_IDS; t++) {
- for (int e = 0; e < PY_MONITORING_EVENTS; e++) {
+ for (int e = 0; e < _PY_MONITORING_EVENTS; e++) {
Py_CLEAR(interp->monitoring_callables[t][e]);
}
}