Searched refs:nallocated (Results 1 – 1 of 1) sorted by relevance
42 int nallocated; member54 x->nallocated = x->nused = 0; in new_itemlist()64 if (l->nallocated < 0) { in item_add()66 l->nallocated = l->nused + ALLOCCHUNK; in item_add()70 } else if (l->nallocated == l->nused) { in item_add()71 if (l->nallocated) in item_add()72 l->nallocated *= 2; in item_add()74 l->nallocated = ALLOCCHUNK; in item_add()75 l->items = realloc(l->items, sizeof (char *) * l->nallocated); in item_add()84 if (l->nallocated == 0) { in item_add_list()[all …]