summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-22 22:20:38 (GMT)
committerGitHub <noreply@github.com>2023-07-22 22:20:38 (GMT)
commit0d4a76654f755d091c14cfa1e57bcfa6333ae05a (patch)
tree5867b835f9f1a24ff2f13526d8c683b195bd8745 /Include
parentbd907dcc50860d4730798ef48dcc30c165aa76c8 (diff)
downloadcpython-0d4a76654f755d091c14cfa1e57bcfa6333ae05a.zip
cpython-0d4a76654f755d091c14cfa1e57bcfa6333ae05a.tar.gz
cpython-0d4a76654f755d091c14cfa1e57bcfa6333ae05a.tar.bz2
[3.12] GH-103082: Rename PY_MONITORING_EVENTS to _PY_MONITORING_EVENTS (#107069) (#107075)
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 (cherry picked from commit 0927a2b25c059988e237108605ed8ab0c5459c53)
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/code.h6
-rw-r--r--Include/internal/pycore_interp.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h
index 6bead36..7449a98 100644
--- a/Include/cpython/code.h
+++ b/Include/cpython/code.h
@@ -10,13 +10,13 @@ extern "C" {
/* Count of all "real" monitoring events (not derived from other events) */
-#define PY_MONITORING_UNGROUPED_EVENTS 14
+#define _PY_MONITORING_UNGROUPED_EVENTS 14
/* Count of all monitoring events */
-#define PY_MONITORING_EVENTS 16
+#define _PY_MONITORING_EVENTS 16
/* Table of which tools are active for each monitored event. */
typedef struct _Py_Monitors {
- uint8_t tools[PY_MONITORING_UNGROUPED_EVENTS];
+ uint8_t tools[_PY_MONITORING_UNGROUPED_EVENTS];
} _Py_Monitors;
/* Each instruction in a code object is a fixed-width value,
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h
index 619225c..6109e93 100644
--- a/Include/internal/pycore_interp.h
+++ b/Include/internal/pycore_interp.h
@@ -25,7 +25,7 @@ extern "C" {
#include "pycore_gc.h" // struct _gc_runtime_state
#include "pycore_global_objects.h" // struct _Py_interp_static_objects
#include "pycore_import.h" // struct _import_state
-#include "pycore_instruments.h" // PY_MONITORING_EVENTS
+#include "pycore_instruments.h" // _PY_MONITORING_EVENTS
#include "pycore_list.h" // struct _Py_list_state
#include "pycore_object_state.h" // struct _py_object_state
#include "pycore_obmalloc.h" // struct obmalloc_state
@@ -188,7 +188,7 @@ struct _is {
bool sys_trace_initialized;
Py_ssize_t sys_profiling_threads; /* Count of threads with c_profilefunc set */
Py_ssize_t sys_tracing_threads; /* Count of threads with c_tracefunc set */
- PyObject *monitoring_callables[PY_MONITORING_TOOL_IDS][PY_MONITORING_EVENTS];
+ PyObject *monitoring_callables[PY_MONITORING_TOOL_IDS][_PY_MONITORING_EVENTS];
PyObject *monitoring_tool_names[PY_MONITORING_TOOL_IDS];
struct _Py_interp_cached_objects cached_objects;