29#define VECTOR_MIN_SIZE 1
34#define vector_slot(V,I) ((V)->index[(I)])
39#define vector_active(V) ((V)->active)
vector vector_copy(vector v)
Definition: vector.c:74
int vector_set(vector v, void *val)
Definition: vector.c:128
unsigned int vector_count(vector v)
Definition: vector.c:186
int vector_set_index(vector v, unsigned int i, void *val)
Definition: vector.c:144
void * vector_lookup(vector, unsigned int)
Definition: vector.c:157
void * tall_vty_vec_ctx
Definition: vector.c:34
void vector_ensure(vector v, unsigned int num)
Definition: vector.c:96
void vector_only_index_free(void *index)
Definition: vector.c:63
void vector_only_wrapper_free(vector v)
Definition: vector.c:58
vector vector_init(unsigned int size)
Definition: vector.c:37
void vector_unset(vector v, unsigned int i)
Definition: vector.c:172
int vector_empty_slot(vector v)
Definition: vector.c:113
void vector_free(vector v)
Definition: vector.c:68
void * vector_lookup_ensure(vector, unsigned int)
Definition: vector.c:165
void ** index
Definition: vector.h:25
unsigned int active
Definition: vector.h:23
unsigned int alloced
Definition: vector.h:24
struct _vector * vector
Definition: vector.h:27