22 |
|
(vector_destroy_function) destroy_fn \ |
23 |
|
} |
24 |
|
|
25 |
< |
int statgrab_vector_resize(void **vector, vector_header *h, int count); |
25 |
> |
int statgrab_vector_resize(char **vector, vector_header *h, int count); |
26 |
|
|
27 |
|
/* Declare a vector. Specify the init/destroy functions as NULL if you don't |
28 |
|
* need them. The block size is how many items to allocate at once. */ |
43 |
|
* out-of-memory, the old contents of the vector will be destroyed and the old |
44 |
|
* vector will be freed. */ |
45 |
|
#define VECTOR_RESIZE(name, num_items) \ |
46 |
< |
statgrab_vector_resize((void **) &name, &name##_header, num_items) |
46 |
> |
statgrab_vector_resize((char **) &name, &name##_header, num_items) |
47 |
|
|
48 |
|
/* Free a vector, destroying its contents. */ |
49 |
|
#define VECTOR_FREE(name) \ |