mirror of
https://github.com/python/cpython.git
synced 2026-03-20 03:41:06 +00:00
remove some unused symtable constants
This commit is contained in:
parent
1a4ceb2f4b
commit
94819cf47c
2 changed files with 3 additions and 11 deletions
|
|
@ -63,13 +63,9 @@ PyAPI_FUNC(void) PySymtable_Free(struct symtable *);
|
|||
#define DEF_LOCAL 2 /* assignment in code block */
|
||||
#define DEF_PARAM 2<<1 /* formal parameter */
|
||||
#define USE 2<<2 /* name is used */
|
||||
#define DEF_STAR 2<<3 /* parameter is star arg */
|
||||
#define DEF_DOUBLESTAR 2<<4 /* parameter is star-star arg */
|
||||
#define DEF_INTUPLE 2<<5 /* name defined in tuple in parameters */
|
||||
#define DEF_FREE 2<<6 /* name used but not defined in nested block */
|
||||
#define DEF_FREE_GLOBAL 2<<7 /* free variable is actually implicit global */
|
||||
#define DEF_FREE_CLASS 2<<8 /* free variable from class's method */
|
||||
#define DEF_IMPORT 2<<9 /* assignment occurred via import */
|
||||
#define DEF_FREE 2<<3 /* name used but not defined in nested block */
|
||||
#define DEF_FREE_CLASS 2<<4 /* free variable from class's method */
|
||||
#define DEF_IMPORT 2<<5 /* assignment occurred via import */
|
||||
|
||||
#define DEF_BOUND (DEF_LOCAL | DEF_PARAM | DEF_IMPORT)
|
||||
|
||||
|
|
|
|||
|
|
@ -59,11 +59,7 @@ init_symtable(void)
|
|||
PyModule_AddIntConstant(m, "DEF_GLOBAL", DEF_GLOBAL);
|
||||
PyModule_AddIntConstant(m, "DEF_LOCAL", DEF_LOCAL);
|
||||
PyModule_AddIntConstant(m, "DEF_PARAM", DEF_PARAM);
|
||||
PyModule_AddIntConstant(m, "DEF_STAR", DEF_STAR);
|
||||
PyModule_AddIntConstant(m, "DEF_DOUBLESTAR", DEF_DOUBLESTAR);
|
||||
PyModule_AddIntConstant(m, "DEF_INTUPLE", DEF_INTUPLE);
|
||||
PyModule_AddIntConstant(m, "DEF_FREE", DEF_FREE);
|
||||
PyModule_AddIntConstant(m, "DEF_FREE_GLOBAL", DEF_FREE_GLOBAL);
|
||||
PyModule_AddIntConstant(m, "DEF_FREE_CLASS", DEF_FREE_CLASS);
|
||||
PyModule_AddIntConstant(m, "DEF_IMPORT", DEF_IMPORT);
|
||||
PyModule_AddIntConstant(m, "DEF_BOUND", DEF_BOUND);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue