Lines Matching refs:elem
298 PyObject *heap=NULL, *elem, *iterable, *sol, *it, *oldelem;
314 elem = PyIter_Next(it);
315 if (elem == NULL) {
321 if (PyList_Append(heap, elem) == -1) {
322 Py_DECREF(elem);
325 Py_DECREF(elem);
336 elem = PyIter_Next(it);
337 if (elem == NULL) {
343 cmp = cmp_lt(sol, elem);
345 Py_DECREF(elem);
349 Py_DECREF(elem);
353 PyList_SET_ITEM(heap, 0, elem);
467 PyObject *heap=NULL, *elem, *iterable, *los, *it, *oldelem;
483 elem = PyIter_Next(it);
484 if (elem == NULL) {
490 if (PyList_Append(heap, elem) == -1) {
491 Py_DECREF(elem);
494 Py_DECREF(elem);
506 elem = PyIter_Next(it);
507 if (elem == NULL) {
513 cmp = cmp_lt(elem, los);
515 Py_DECREF(elem);
519 Py_DECREF(elem);
524 PyList_SET_ITEM(heap, 0, elem);