| 184 void **ptr = iter->base.current_impl(it); |
184 void **ptr = iter->base.current_impl(it); |
| 185 return ptr == NULL ? NULL : *ptr; |
185 return ptr == NULL ? NULL : *ptr; |
| 186 } |
186 } |
| 187 |
187 |
| 188 static int cx_pl_change_capacity(struct cx_list_s *list, size_t cap) { |
188 static int cx_pl_change_capacity(struct cx_list_s *list, size_t cap) { |
| 189 return list->climpl->change_capacity(list, cap); |
189 if (list->climpl->change_capacity == NULL) { |
| |
190 return 0; |
| |
191 } else { |
| |
192 return list->climpl->change_capacity(list, cap); |
| |
193 } |
| 190 } |
194 } |
| 191 |
195 |
| 192 static struct cx_iterator_s cx_pl_iterator( |
196 static struct cx_iterator_s cx_pl_iterator( |
| 193 const struct cx_list_s *list, |
197 const struct cx_list_s *list, |
| 194 size_t index, |
198 size_t index, |