Lines Matching refs:items
109 /* TODO: optimize for large number of items. */
227 pmcpl_ct_arc_grow(int cursize, int *maxsize, struct pmcpl_ct_arc **items)
235 *items = realloc(*items, nmaxsize * sizeof(struct pmcpl_ct_arc));
236 if (*items == NULL)
238 bzero((char *)*items + *maxsize * sizeof(struct pmcpl_ct_arc),
248 pmcpl_ct_instr_grow(int cursize, int *maxsize, struct pmcpl_ct_instr **items)
256 *items = realloc(*items, nmaxsize * sizeof(struct pmcpl_ct_instr));
257 if (*items == NULL)
259 bzero((char *)*items + *maxsize * sizeof(struct pmcpl_ct_instr),