290 list->size--; |
290 list->size--; |
291 } |
291 } |
292 return result; |
292 return result; |
293 } |
293 } |
294 |
294 |
|
295 static int cx_arl_swap( |
|
296 struct cx_list_s *list, |
|
297 size_t i, |
|
298 size_t j |
|
299 ) { |
|
300 if (i >= list->size || j >= list->size) return 1; |
|
301 cx_array_list *arl = (cx_array_list *) list; |
|
302 cx_array_swap(arl->data, list->itemsize, i, j); |
|
303 return 0; |
|
304 } |
|
305 |
295 static void *cx_arl_at( |
306 static void *cx_arl_at( |
296 struct cx_list_s const *list, |
307 struct cx_list_s const *list, |
297 size_t index |
308 size_t index |
298 ) { |
309 ) { |
299 if (index < list->size) { |
310 if (index < list->size) { |