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
96 while (current) { in zend_llist_del_element()
97 next = current->next; in zend_llist_del_element()
98 if (compare(current->data, element)) { in zend_llist_del_element()
99 DEL_LLIST_ELEMENT(current, l); in zend_llist_del_element()
102 current = next; in zend_llist_del_element()
109 zend_llist_element *current=l->head, *next; in zend_llist_destroy() local
111 while (current) { in zend_llist_destroy()
112 next = current->next; in zend_llist_destroy()
114 l->dtor(current->data); in zend_llist_destroy()
116 pefree(current, l->persistent); in zend_llist_destroy()
117 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()