Lines Matching refs:current
70 #define DEL_LLIST_ELEMENT(current, l) \ argument
71 if ((current)->prev) {\
72 (current)->prev->next = (current)->next;\
74 (l)->head = (current)->next;\
76 if ((current)->next) {\
77 (current)->next->prev = (current)->prev;\
79 (l)->tail = (current)->prev;\
82 (l)->dtor((current)->data);\
84 pefree((current), (l)->persistent);\
90 zend_llist_element *current=l->head; in zend_llist_del_element() local
92 while (current) { in zend_llist_del_element()
93 if (compare(current->data, element)) { in zend_llist_del_element()
94 DEL_LLIST_ELEMENT(current, l); in zend_llist_del_element()
97 current = current->next; in zend_llist_del_element()
104 zend_llist_element *current=l->head, *next; in zend_llist_destroy() local
106 while (current) { in zend_llist_destroy()
107 next = current->next; in zend_llist_destroy()
109 l->dtor(current->data); in zend_llist_destroy()
111 pefree(current, l->persistent); in zend_llist_destroy()
112 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()