Skip to content

Commit 8f0998e

Browse files
authored
gh-114828: parenthesize non-atomic macro definitions in pycore_symtable.h (#115143)
1 parent ef3ceab commit 8f0998e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Include/internal/pycore_symtable.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,18 @@ extern PyObject* _Py_Mangle(PyObject *p, PyObject *name);
109109

110110
/* Flags for def-use information */
111111

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 */
124124

125125
#define DEF_BOUND (DEF_LOCAL | DEF_PARAM | DEF_IMPORT)
126126

0 commit comments

Comments
 (0)