202 #define PVECTOR_ALLOC(n) Pvector_alloc(n)
203 #define PVECTOR_FREE(v) Pvector_free(v)
204 #define PVECTOR_PUSHBACK(v, data) Pvector_pushBack(v, data)
205 #define PVECTOR_POPBACK(v) vector_popBack(v)
206 #define PVECTOR_AT(v, i) vector_at(v, i)
207 #define PVECTOR_GETSIZE(v) vector_getSize(v)
208 #define PVECTOR_CLEAR(v) vector_clear(v)
209 #define PVECTOR_SORT(v, cmp) vector_sort(v, cmp)
210 #define PVECTOR_COPY(dst, src) Pvector_copy(dst, src)
void vector_free(vector_t *vectorPtr)
Definition: vector.c:137
vector_t * Pvector_alloc(long initCapacity)
Definition: vector.c:112
vector_t * vector_alloc(long initCapacity)
Definition: vector.c:86
int bool_t
Definition: portable_defns.h:32
void ** elements
Definition: vector.h:88
long size
Definition: vector.h:86
void vector_sort(vector_t *vectorPtr, int(*compare)(const void *, const void *))
Definition: vector.c:276
void Pvector_free(vector_t *vectorPtr)
Definition: vector.c:149
void * vector_at(vector_t *vectorPtr, long i)
Definition: vector.c:162
bool_t vector_copy(vector_t *dstVectorPtr, vector_t *srcVectorPtr)
Definition: vector.c:288
long vector_getSize(vector_t *vectorPtr)
Definition: vector.c:251
void vector_clear(vector_t *vectorPtr)
Definition: vector.c:262
void * vector_popBack(vector_t *vectorPtr)
Definition: vector.c:236
bool_t vector_pushBack(vector_t *vectorPtr, void *dataPtr)
Definition: vector.c:178
long capacity
Definition: vector.h:87
bool_t Pvector_pushBack(vector_t *vectorPtr, void *dataPtr)
Definition: vector.c:207
bool_t Pvector_copy(vector_t *dstVectorPtr, vector_t *srcVectorPtr)
Definition: vector.c:317