Skip to content

Commit 05e2ce0

Browse files
committed
use PY_ prefix for temp macros in headers too
1 parent e391218 commit 05e2ce0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Include/cpython/code.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ PyAPI_FUNC(int) PyCode_Addr2Location(PyCodeObject *, int, int *, int *, int *, i
229229
V(DESTROY)
230230

231231
typedef enum {
232-
#define DEF_EVENT(op) PY_CODE_EVENT_##op,
233-
PY_FOREACH_CODE_EVENT(DEF_EVENT)
234-
#undef DEF_EVENT
232+
#define PY_DEF_EVENT(op) PY_CODE_EVENT_##op,
233+
PY_FOREACH_CODE_EVENT(PY_DEF_EVENT)
234+
#undef PY_DEF_EVENT
235235
} PyCodeEvent;
236236

237237

Include/cpython/dictobject.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ PyAPI_FUNC(PyObject *) _PyDictView_Intersect(PyObject* self, PyObject *other);
9999
V(DEALLOCATED)
100100

101101
typedef enum {
102-
#define DEF_EVENT(EVENT) PyDict_EVENT_##EVENT,
103-
PY_FOREACH_DICT_EVENT(DEF_EVENT)
104-
#undef DEF_EVENT
102+
#define PY_DEF_EVENT(EVENT) PyDict_EVENT_##EVENT,
103+
PY_FOREACH_DICT_EVENT(PY_DEF_EVENT)
104+
#undef PY_DEF_EVENT
105105
} PyDict_WatchEvent;
106106

107107
// Callback to be invoked when a watched dict is cleared, dealloced, or modified.

Include/cpython/funcobject.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ PyAPI_FUNC(PyObject *) PyStaticMethod_New(PyObject *);
139139
V(MODIFY_KWDEFAULTS)
140140

141141
typedef enum {
142-
#define DEF_EVENT(EVENT) PyFunction_EVENT_##EVENT,
143-
PY_FOREACH_FUNC_EVENT(DEF_EVENT)
144-
#undef DEF_EVENT
142+
#define PY_DEF_EVENT(EVENT) PyFunction_EVENT_##EVENT,
143+
PY_FOREACH_FUNC_EVENT(PY_DEF_EVENT)
144+
#undef PY_DEF_EVENT
145145
} PyFunction_WatchEvent;
146146

147147
/*

0 commit comments

Comments
 (0)