File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ extern "C" {
8
8
#endif
9
9
10
10
11
- #define COMMON_FIELDS (PREFIX ) \
11
+ #define _Py_COMMON_FIELDS (PREFIX ) \
12
12
PyObject *PREFIX ## globals; \
13
13
PyObject *PREFIX ## builtins; \
14
14
PyObject *PREFIX ## name; \
@@ -19,7 +19,7 @@ extern "C" {
19
19
PyObject * PREFIX ## closure ; /* NULL or a tuple of cell objects */
20
20
21
21
typedef struct {
22
- COMMON_FIELDS (fc_ )
22
+ _Py_COMMON_FIELDS (fc_ )
23
23
} PyFrameConstructor ;
24
24
25
25
/* Function objects and code objects should not be confused with each other:
@@ -35,7 +35,7 @@ typedef struct {
35
35
36
36
typedef struct {
37
37
PyObject_HEAD
38
- COMMON_FIELDS (func_ )
38
+ _Py_COMMON_FIELDS (func_ )
39
39
PyObject * func_doc ; /* The __doc__ attribute, can be anything */
40
40
PyObject * func_dict ; /* The __dict__ attribute, a dict or NULL */
41
41
PyObject * func_weakreflist ; /* List of weak references */
@@ -60,6 +60,8 @@ typedef struct {
60
60
*/
61
61
} PyFunctionObject ;
62
62
63
+ #undef _Py_COMMON_FIELDS
64
+
63
65
PyAPI_DATA (PyTypeObject ) PyFunction_Type ;
64
66
65
67
#define PyFunction_Check (op ) Py_IS_TYPE((op), &PyFunction_Type)
You can’t perform that action at this time.
0 commit comments