Lines Matching refs:head
73 spl_ptr_llist_element *head; member
134 llist->head = NULL; in spl_ptr_llist_init()
152 spl_ptr_llist_element *current = llist->head, *next; in spl_ptr_llist_destroy()
177 current = llist->head; in spl_ptr_llist_offset()
199 elem->next = llist->head; in spl_ptr_llist_unshift()
202 if (llist->head) { in spl_ptr_llist_unshift()
203 llist->head->prev = elem; in spl_ptr_llist_unshift()
208 llist->head = elem; in spl_ptr_llist_unshift()
229 llist->head = elem; in spl_ptr_llist_push()
253 llist->head = NULL; in spl_ptr_llist_pop()
285 spl_ptr_llist_element *head = llist->head; in spl_ptr_llist_first() local
287 if (head == NULL) { in spl_ptr_llist_first()
290 return &head->data; in spl_ptr_llist_first()
297 spl_ptr_llist_element *head = llist->head; in spl_ptr_llist_shift() local
299 if (head == NULL) { in spl_ptr_llist_shift()
304 if (head->next) { in spl_ptr_llist_shift()
305 head->next->prev = NULL; in spl_ptr_llist_shift()
310 llist->head = head->next; in spl_ptr_llist_shift()
312 ZVAL_COPY(ret, &head->data); in spl_ptr_llist_shift()
314 head->next = NULL; in spl_ptr_llist_shift()
316 llist->dtor(head); in spl_ptr_llist_shift()
318 ZVAL_UNDEF(&head->data); in spl_ptr_llist_shift()
320 SPL_LLIST_DELREF(head); in spl_ptr_llist_shift()
326 spl_ptr_llist_element *current = from->head, *next; in spl_ptr_llist_copy()
391 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
395 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
402 intern->traverse_pointer = intern->llist->head; in spl_dllist_object_new_ex()
498 spl_ptr_llist_element *current = intern->llist->head, *next; in spl_dllist_object_get_debug_info()
542 spl_ptr_llist_element *current = intern->llist->head; in spl_dllist_object_get_gc()
894 if (element == llist->head) { in SPL_METHOD()
895 llist->head = element->next; in SPL_METHOD()
943 *traverse_pointer_ptr = llist->head; in spl_dllist_it_helper_rewind()
1132 spl_ptr_llist_element *current = intern->llist->head, *next; in SPL_METHOD()
1271 intern->llist->head = elem; in SPL_METHOD()