Lines Matching refs:elements
198 zend_llist_element **elements; in zend_llist_sort() local
205 elements = (zend_llist_element **) emalloc(l->count * sizeof(zend_llist_element *)); in zend_llist_sort()
207 ptr = &elements[0]; in zend_llist_sort()
213 zend_sort(elements, l->count, sizeof(zend_llist_element *), in zend_llist_sort()
216 l->head = elements[0]; in zend_llist_sort()
217 elements[0]->prev = NULL; in zend_llist_sort()
220 elements[i]->prev = elements[i-1]; in zend_llist_sort()
221 elements[i-1]->next = elements[i]; in zend_llist_sort()
223 elements[i-1]->next = NULL; in zend_llist_sort()
224 l->tail = elements[i-1]; in zend_llist_sort()
225 efree(elements); in zend_llist_sort()