Home
last modified time | relevance | path

Searched refs:st_stack (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Include/
Dsymtable.h18 PyObject *st_stack; /* stack of namespace info */ member
/external/python/cpython3/Include/
Dsymtable.h26 PyObject *st_stack; /* list: stack of namespace info */ member
/external/python/cpython3/Python/
Dsymtable.c236 if ((st->st_stack = PyList_New(0)) == NULL) in symtable_new()
366 Py_XDECREF(st->st_stack); in PySymtable_Free()
957 size = PyList_GET_SIZE(st->st_stack); in symtable_exit_block()
959 if (PyList_SetSlice(st->st_stack, size - 1, size, NULL) < 0) in symtable_exit_block()
962 st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, size - 1); in symtable_exit_block()
976 if (PyList_Append(st->st_stack, (PyObject *)ste) < 0) { in symtable_enter_block()
1437 assert(st->st_stack); in symtable_extend_namedexpr_scope()
1443 size = PyList_GET_SIZE(st->st_stack); in symtable_extend_namedexpr_scope()
1448 ste = (struct _symtable_entry *) PyList_GET_ITEM(st->st_stack, i); in symtable_extend_namedexpr_scope()
/external/python/cpython2/Python/
Dsymtable.c208 if ((st->st_stack = PyList_New(0)) == NULL) in symtable_new()
282 Py_XDECREF(st->st_stack); in PySymtable_Free()
830 end = PyList_GET_SIZE(st->st_stack) - 1; in symtable_exit_block()
832 st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, in symtable_exit_block()
837 if (PySequence_DelItem(st->st_stack, end) < 0) in symtable_exit_block()
851 if (PyList_Append(st->st_stack, (PyObject *)st->st_cur) < 0) { in symtable_enter_block()