Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Denumobject.c15 Py_ssize_t en_index; /* current index of enumeration */ member
55 en->en_index = PyLong_AsSsize_t(start); in enum_new_impl()
56 if (en->en_index == -1 && PyErr_Occurred()) { in enum_new_impl()
58 en->en_index = PY_SSIZE_T_MAX; in enum_new_impl()
65 en->en_index = 0; in enum_new_impl()
160 if (en->en_index == PY_SSIZE_T_MAX) in enum_next()
163 next_index = PyLong_FromSsize_t(en->en_index); in enum_next()
168 en->en_index++; in enum_next()
197 return Py_BuildValue("O(On)", Py_TYPE(en), en->en_sit, en->en_index); in enum_reduce()
/external/python/cpython2/Objects/
Denumobject.c7 Py_ssize_t en_index; /* current index of enumeration */ member
35 en->en_index = PyInt_AsSsize_t(start); in enum_new()
36 if (en->en_index == -1 && PyErr_Occurred()) { in enum_new()
38 en->en_index = PY_SSIZE_T_MAX; in enum_new()
45 en->en_index = 0; in enum_new()
140 if (en->en_index == PY_SSIZE_T_MAX) in enum_next()
143 next_index = PyInt_FromSsize_t(en->en_index); in enum_next()
148 en->en_index++; in enum_next()