diff options
author | Eli Bendersky <eliben@gmail.com> | 2011-04-10 04:37:26 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2011-04-10 04:37:26 (GMT) |
commit | dd97fbb2dcfbfbf701b5290b666a62fed6a76fb2 (patch) | |
tree | d68e07e3c46c3c3ec1a3f60d674d87825f5e4b1d /Include | |
parent | 1929983518098d7bc370bd7ecb524626d6bd4a66 (diff) | |
download | cpython-dd97fbb2dcfbfbf701b5290b666a62fed6a76fb2.zip cpython-dd97fbb2dcfbfbf701b5290b666a62fed6a76fb2.tar.gz cpython-dd97fbb2dcfbfbf701b5290b666a62fed6a76fb2.tar.bz2 |
Issue #9904: fix and clarify some comments + fix indentation in symtable code
Diffstat (limited to 'Include')
-rw-r--r-- | Include/symtable.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Include/symtable.h b/Include/symtable.h index fd7de04..82f6269 100644 --- a/Include/symtable.h +++ b/Include/symtable.h @@ -23,10 +23,13 @@ struct symtable { PyObject *st_blocks; /* dict: map AST node addresses * to symbol table entries */ PyObject *st_stack; /* list: stack of namespace info */ - PyObject *st_global; /* borrowed ref to st_top->st_symbols */ - int st_nblocks; /* number of blocks used */ + PyObject *st_global; /* borrowed ref to st_top->ste_symbols */ + int st_nblocks; /* number of blocks used. kept for + consistency with the corresponding + compiler structure */ PyObject *st_private; /* name of current class or NULL */ - PyFutureFeatures *st_future; /* module's future features */ + PyFutureFeatures *st_future; /* module's future features that affect + the symbol table */ }; typedef struct _symtable_entry { @@ -34,7 +37,7 @@ typedef struct _symtable_entry { PyObject *ste_id; /* int: key in ste_table->st_blocks */ PyObject *ste_symbols; /* dict: variable names to flags */ PyObject *ste_name; /* string: name of current block */ - PyObject *ste_varnames; /* list of variable names */ + PyObject *ste_varnames; /* list of function parameters */ PyObject *ste_children; /* list of child blocks */ _Py_block_ty ste_type; /* module, class, or function */ int ste_unoptimized; /* false if namespace is optimized */ |