Lines Matching refs:current
73 #define DEL_LLIST_ELEMENT(current, l) \ argument
74 if ((current)->prev) {\
75 (current)->prev->next = (current)->next;\
77 (l)->head = (current)->next;\
79 if ((current)->next) {\
80 (current)->next->prev = (current)->prev;\
82 (l)->tail = (current)->prev;\
85 (l)->dtor((current)->data);\
87 pefree((current), (l)->persistent);\
93 zend_llist_element *current=l->head; in zend_llist_del_element() local
95 while (current) { in zend_llist_del_element()
96 if (compare(current->data, element)) { in zend_llist_del_element()
97 DEL_LLIST_ELEMENT(current, l); in zend_llist_del_element()
100 current = current->next; in zend_llist_del_element()
107 zend_llist_element *current=l->head, *next; in zend_llist_destroy() local
109 while (current) { in zend_llist_destroy()
110 next = current->next; in zend_llist_destroy()
112 l->dtor(current->data); in zend_llist_destroy()
114 pefree(current, l->persistent); in zend_llist_destroy()
115 current = next; in zend_llist_destroy()
260 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_first_ex() local
262 *current = l->head; in zend_llist_get_first_ex()
263 if (*current) { in zend_llist_get_first_ex()
264 return (*current)->data; in zend_llist_get_first_ex()
273 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_last_ex() local
275 *current = l->tail; in zend_llist_get_last_ex()
276 if (*current) { in zend_llist_get_last_ex()
277 return (*current)->data; in zend_llist_get_last_ex()
286 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_next_ex() local
288 if (*current) { in zend_llist_get_next_ex()
289 *current = (*current)->next; in zend_llist_get_next_ex()
290 if (*current) { in zend_llist_get_next_ex()
291 return (*current)->data; in zend_llist_get_next_ex()
300 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_prev_ex() local
302 if (*current) { in zend_llist_get_prev_ex()
303 *current = (*current)->prev; in zend_llist_get_prev_ex()
304 if (*current) { in zend_llist_get_prev_ex()
305 return (*current)->data; in zend_llist_get_prev_ex()