Lines Matching refs:tail
74 spl_ptr_llist_element *tail; member
135 llist->tail = NULL; in spl_ptr_llist_init()
175 current = llist->tail; in spl_ptr_llist_offset()
205 llist->tail = elem; in spl_ptr_llist_unshift()
222 elem->prev = llist->tail; in spl_ptr_llist_push()
226 if (llist->tail) { in spl_ptr_llist_push()
227 llist->tail->next = elem; in spl_ptr_llist_push()
232 llist->tail = elem; in spl_ptr_llist_push()
243 spl_ptr_llist_element *tail = llist->tail; in spl_ptr_llist_pop() local
245 if (tail == NULL) { in spl_ptr_llist_pop()
250 if (tail->prev) { in spl_ptr_llist_pop()
251 tail->prev->next = NULL; in spl_ptr_llist_pop()
256 llist->tail = tail->prev; in spl_ptr_llist_pop()
258 ZVAL_COPY(ret, &tail->data); in spl_ptr_llist_pop()
260 tail->prev = NULL; in spl_ptr_llist_pop()
262 llist->dtor(tail); in spl_ptr_llist_pop()
265 ZVAL_UNDEF(&tail->data); in spl_ptr_llist_pop()
267 SPL_LLIST_DELREF(tail); in spl_ptr_llist_pop()
273 spl_ptr_llist_element *tail = llist->tail; in spl_ptr_llist_last() local
275 if (tail == NULL) { in spl_ptr_llist_last()
278 return &tail->data; in spl_ptr_llist_last()
307 llist->tail = NULL; in spl_ptr_llist_shift()
897 if (element == llist->tail) { in SPL_METHOD()
898 llist->tail = element->prev; in SPL_METHOD()
939 *traverse_pointer_ptr = llist->tail; in spl_dllist_it_helper_rewind()