Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8f0998e

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

File tree

Expand file treeCollapse file tree

1 file changed

+12
-12
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-12
lines changed

‎Include/internal/pycore_symtable.h

Copy file name to clipboardExpand all lines: Include/internal/pycore_symtable.h
+12-12Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.