63 list->alloc_values = 0;
79 if (
list->n_values ==
list->alloc_values) {
80 size_t size = (
list->n_values + 1000) *
sizeof(
int);
83 list->value = (
int *)p;
84 list->alloc_values =
list->n_values + 1000;
void G_free(void *)
Free allocated memory.
struct ilist * G_new_ilist()
Return a new integer list.
void G_init_ilist(struct ilist *list)
Init an integer list and free allocated memory.
void G_ilist_add(struct ilist *list, int val)
Add item to ilist.
void G_free_ilist(struct ilist *list)
Free allocated memory of an integer list.