19 #include <grass/gis.h>
20 #include <grass/Vect.h>
27 list->alloc_values = 0;
38 if (list->n_values == list->alloc_values) {
39 size = (list->n_values + 1000) *
sizeof(
int);
40 p = G_realloc((
void *)list->value, size);
43 list->value = (
int *)p;
44 list->alloc_values = list->n_values + 1000;
47 list->value[list->n_values] = val;
int dig_init_list(struct ilist *list)
int dig_list_add(struct ilist *list, int val)