33 #define VECTOR_MIN_SIZE 1
38 #define vector_slot(V,I) ((V)->index[(I)])
43 #define vector_active(V) ((V)->active)
46 vector vector_init(
unsigned int size);
47 void vector_ensure(vector v,
unsigned int num);
48 int vector_empty_slot(vector v);
49 int vector_set(vector v,
void *val);
50 int vector_set_index(vector v,
unsigned int i,
void *val);
51 void vector_unset(vector v,
unsigned int i);
52 unsigned int vector_count(vector v);
53 void vector_only_wrapper_free(vector v);
54 void vector_only_index_free(
void *index);
55 void vector_free(vector v);
56 vector vector_copy(vector v);
58 void *vector_lookup(vector,
unsigned int);
59 void *vector_lookup_ensure(vector,
unsigned int);
61 extern void *tall_vty_vec_ctx;