Lines Matching refs:current
72 #define DEL_LLIST_ELEMENT(current, l) \ argument
73 if ((current)->prev) {\
74 (current)->prev->next = (current)->next;\
76 (l)->head = (current)->next;\
78 if ((current)->next) {\
79 (current)->next->prev = (current)->prev;\
81 (l)->tail = (current)->prev;\
84 (l)->dtor((current)->data);\
86 pefree((current), (l)->persistent);\
92 zend_llist_element *current=l->head; in zend_llist_del_element() local
94 while (current) { in zend_llist_del_element()
95 if (compare(current->data, element)) { in zend_llist_del_element()
96 DEL_LLIST_ELEMENT(current, l); in zend_llist_del_element()
99 current = current->next; in zend_llist_del_element()
106 zend_llist_element *current=l->head, *next; in zend_llist_destroy() local
108 while (current) { in zend_llist_destroy()
109 next = current->next; in zend_llist_destroy()
111 l->dtor(current->data); in zend_llist_destroy()
113 pefree(current, l->persistent); in zend_llist_destroy()
114 current = next; in zend_llist_destroy()
262 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_first_ex() local
264 *current = l->head; in zend_llist_get_first_ex()
265 if (*current) { in zend_llist_get_first_ex()
266 return (*current)->data; in zend_llist_get_first_ex()
275 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_last_ex() local
277 *current = l->tail; in zend_llist_get_last_ex()
278 if (*current) { in zend_llist_get_last_ex()
279 return (*current)->data; in zend_llist_get_last_ex()
288 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_next_ex() local
290 if (*current) { in zend_llist_get_next_ex()
291 *current = (*current)->next; in zend_llist_get_next_ex()
292 if (*current) { in zend_llist_get_next_ex()
293 return (*current)->data; in zend_llist_get_next_ex()
302 zend_llist_position *current = pos ? pos : &l->traverse_ptr; in zend_llist_get_prev_ex() local
304 if (*current) { in zend_llist_get_prev_ex()
305 *current = (*current)->prev; in zend_llist_get_prev_ex()
306 if (*current) { in zend_llist_get_prev_ex()
307 return (*current)->data; in zend_llist_get_prev_ex()