reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
201 if (!list || !el) 203 ctx = FN(LIST(EL),get_ctx)(list); 204 if (pos > list->n) 208 if (list->ref == 1 && list->size > list->n) { 208 if (list->ref == 1 && list->size > list->n) { 208 if (list->ref == 1 && list->size > list->n) { 209 for (i = list->n; i > pos; --i) 210 list->p[i] = list->p[i - 1]; 210 list->p[i] = list->p[i - 1]; 211 list->n++; 212 list->p[pos] = el; 213 return list; 216 res = FN(LIST(EL),alloc)(ctx, list->n + 1); 218 res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i])); 220 for (i = pos; i < list->n; ++i) 221 res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i])); 222 FN(LIST(EL),free)(list); 227 FN(LIST(EL),free)(list);