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()
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()