src/list.c

changeset 647
2e6e9d9f2159
parent 641
d402fead3386
child 655
7340c4255f1f
equal deleted inserted replaced
646:dfd0403ff8b6 647:2e6e9d9f2159
93 size_t index 93 size_t index
94 ) { 94 ) {
95 return list->climpl->remove(list, index); 95 return list->climpl->remove(list, index);
96 } 96 }
97 97
98 static int cx_pl_swap(
99 struct cx_list_s *list,
100 size_t i,
101 size_t j
102 ) {
103 return list->climpl->swap(list, i, j);
104 }
105
98 static void *cx_pl_at( 106 static void *cx_pl_at(
99 struct cx_list_s const *list, 107 struct cx_list_s const *list,
100 size_t index 108 size_t index
101 ) { 109 ) {
102 void **ptr = list->climpl->at(list, index); 110 void **ptr = list->climpl->at(list, index);
153 cx_pl_destructor, 161 cx_pl_destructor,
154 cx_pl_insert_element, 162 cx_pl_insert_element,
155 cx_pl_insert_array, 163 cx_pl_insert_array,
156 cx_pl_insert_iter, 164 cx_pl_insert_iter,
157 cx_pl_remove, 165 cx_pl_remove,
166 cx_pl_swap,
158 cx_pl_at, 167 cx_pl_at,
159 cx_pl_find, 168 cx_pl_find,
160 cx_pl_sort, 169 cx_pl_sort,
161 cx_pl_compare, 170 cx_pl_compare,
162 cx_pl_reverse, 171 cx_pl_reverse,

mercurial