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; |