src/array_list.c

changeset 850
b2bc48c2b251
parent 829
7d4e31d295af
child 853
d4baf4dd55c3
equal deleted inserted replaced
849:edb9f875b7f9 850:b2bc48c2b251
501 struct cx_iterator_s iter; 501 struct cx_iterator_s iter;
502 502
503 iter.index = index; 503 iter.index = index;
504 iter.src_handle = list; 504 iter.src_handle = list;
505 iter.elem_handle = cx_arl_at(list, index); 505 iter.elem_handle = cx_arl_at(list, index);
506 iter.elem_size = list->item_size;
507 iter.elem_count = list->size;
506 iter.base.valid = cx_arl_iter_valid; 508 iter.base.valid = cx_arl_iter_valid;
507 iter.base.current = cx_arl_iter_current; 509 iter.base.current = cx_arl_iter_current;
508 iter.base.next = backwards ? cx_arl_iter_prev : cx_arl_iter_next; 510 iter.base.next = backwards ? cx_arl_iter_prev : cx_arl_iter_next;
509 iter.base.remove = false; 511 iter.base.remove = false;
510 iter.base.mutating = false; 512 iter.base.mutating = false;

mercurial