Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0d4c7b5
Commit
e0d4c7b5
authored
Aug 17, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose PySTEntry.nested so the symtable module will work
parent
1e45c58a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Include/symtable.h
Include/symtable.h
+1
-1
Python/symtable.c
Python/symtable.c
+1
-0
No files found.
Include/symtable.h
View file @
e0d4c7b5
...
...
@@ -32,7 +32,7 @@ typedef struct _symtable_entry {
PyObject
*
ste_children
;
/* list of child ids */
_Py_block_ty
ste_type
;
/* module, class, or function */
int
ste_unoptimized
;
/* false if namespace is optimized */
unsigned
ste_nested
:
1
;
/* true if block is nested */
int
ste_nested
:
;
/* true if block is nested */
unsigned
ste_free
:
1
;
/* true if block has free variables */
unsigned
ste_child_free
:
1
;
/* true if a child block has free vars,
including free refs to globals */
...
...
Python/symtable.c
View file @
e0d4c7b5
...
...
@@ -112,6 +112,7 @@ static PyMemberDef ste_memberlist[] = {
{
"symbols"
,
T_OBJECT
,
OFF
(
ste_symbols
),
READONLY
},
{
"varnames"
,
T_OBJECT
,
OFF
(
ste_varnames
),
READONLY
},
{
"children"
,
T_OBJECT
,
OFF
(
ste_children
),
READONLY
},
{
"nested"
,
T_INT
,
OFF
(
ste_nested
),
READONLY
},
{
"type"
,
T_INT
,
OFF
(
ste_type
),
READONLY
},
{
"lineno"
,
T_INT
,
OFF
(
ste_lineno
),
READONLY
},
{
NULL
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment