Home
last modified time | relevance | path

Searched refs:c_stack (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Python/
Dcompile.c145 PyObject *c_stack; /* Python list holding compiler_unit ptrs */ member
246 c->c_stack = PyList_New(0); in compiler_init()
247 if (!c->c_stack) in compiler_init()
322 Py_DECREF(c->c_stack); in compiler_free()
519 if (!capsule || PyList_Append(c->c_stack, capsule) < 0) { in compiler_enter_scope()
546 n = PyList_GET_SIZE(c->c_stack) - 1; in compiler_exit_scope()
548 capsule = PyList_GET_ITEM(c->c_stack, n); in compiler_exit_scope()
552 if (PySequence_DelItem(c->c_stack, n) < 0) in compiler_exit_scope()
/external/python/cpython3/Python/
Dcompile.c162 PyObject *c_stack; /* Python list holding compiler_unit ptrs */ member
293 c->c_stack = PyList_New(0); in compiler_init()
294 if (!c->c_stack) in compiler_init()
395 Py_DECREF(c->c_stack); in compiler_free()
623 if (!capsule || PyList_Append(c->c_stack, capsule) < 0) { in compiler_enter_scope()
658 n = PyList_GET_SIZE(c->c_stack) - 1; in compiler_exit_scope()
660 capsule = PyList_GET_ITEM(c->c_stack, n); in compiler_exit_scope()
664 if (PySequence_DelItem(c->c_stack, n) < 0) in compiler_exit_scope()
683 stack_size = PyList_GET_SIZE(c->c_stack); in compiler_set_qualname()
690 capsule = PyList_GET_ITEM(c->c_stack, stack_size - 1); in compiler_set_qualname()