@@ -109,18 +109,18 @@ extern PyObject* _Py_Mangle(PyObject *p, PyObject *name);
109
109
110
110
/* Flags for def-use information */
111
111
112
- #define DEF_GLOBAL 1 /* global stmt */
113
- #define DEF_LOCAL 2 /* assignment in code block */
114
- #define DEF_PARAM 2<<1 /* formal parameter */
115
- #define DEF_NONLOCAL 2<<2 /* nonlocal stmt */
116
- #define USE 2<<3 /* name is used */
117
- #define DEF_FREE 2<<4 /* name used but not defined in nested block */
118
- #define DEF_FREE_CLASS 2<<5 /* free variable from class's method */
119
- #define DEF_IMPORT 2<<6 /* assignment occurred via import */
120
- #define DEF_ANNOT 2<<7 /* this name is annotated */
121
- #define DEF_COMP_ITER 2<<8 /* this name is a comprehension iteration variable */
122
- #define DEF_TYPE_PARAM 2<<9 /* this name is a type parameter */
123
- #define DEF_COMP_CELL 2<<10 /* this name is a cell in an inlined comprehension */
112
+ #define DEF_GLOBAL 1 /* global stmt */
113
+ #define DEF_LOCAL 2 /* assignment in code block */
114
+ #define DEF_PARAM ( 2<<1) /* formal parameter */
115
+ #define DEF_NONLOCAL ( 2<<2) /* nonlocal stmt */
116
+ #define USE ( 2<<3) /* name is used */
117
+ #define DEF_FREE ( 2<<4) /* name used but not defined in nested block */
118
+ #define DEF_FREE_CLASS ( 2<<5) /* free variable from class's method */
119
+ #define DEF_IMPORT ( 2<<6) /* assignment occurred via import */
120
+ #define DEF_ANNOT ( 2<<7) /* this name is annotated */
121
+ #define DEF_COMP_ITER ( 2<<8) /* this name is a comprehension iteration variable */
122
+ #define DEF_TYPE_PARAM ( 2<<9) /* this name is a type parameter */
123
+ #define DEF_COMP_CELL ( 2<<10) /* this name is a cell in an inlined comprehension */
124
124
125
125
#define DEF_BOUND (DEF_LOCAL | DEF_PARAM | DEF_IMPORT)
126
126
0 commit comments