29 |
|
|
30 |
|
#include "vector.h" |
31 |
|
|
32 |
< |
void *statgrab_vector_resize(void *vector, vector_header *h, int count) { |
32 |
> |
void *sg_vector_resize(void *vector, vector_header *h, int count) { |
33 |
|
int new_count, i; |
34 |
|
|
35 |
|
/* Destroy any now-unused items. |
55 |
|
new_vector = realloc(vector, new_count * h->item_size); |
56 |
|
if (new_vector == NULL && new_count != 0) { |
57 |
|
/* Out of memory -- free the contents of the vector. */ |
58 |
< |
statgrab_vector_resize(vector, h, 0); |
58 |
> |
sg_vector_resize(vector, h, 0); |
59 |
|
h->error = -1; |
60 |
|
return vector; |
61 |
|
} |