64 list->alloc_values = 0;
80 if (
list->n_values ==
list->alloc_values) {
81 size_t size = (
list->n_values + 1000) *
sizeof(
int);
84 list->value = (
int *)p;
85 list->alloc_values =
list->n_values + 1000;
void G_free(void *)
Free allocated memory.
struct ilist * G_new_ilist(void)
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.