Lines Matching defs:vector
51 uint32 slots; /* total number of spaces in the allocated vector */
52 uint8 **vector; /* sorted vector of pointers to atomized strings */
84 /* get vector for pointers to strings */
85 ad->vector = (uint8 **)malloc(MIN_BLOCK_SIZE);
86 if (ad->vector) {
95 /* oops, vector allocation failed */
124 /* release vector of pointers to atomized strings */
125 free(ad->vector);
292 uint8 **vector = ad->vector;
298 /* do a binary search on the vector for a match */
301 test = strcmp(string, (const char *)vector[index]);
311 result = vector[index];
340 /* insert the pointer in the vector */
341 /* if the vector isn't big enough, realloc it */
344 uint8 **newvec = realloc(vector, newslots * sizeof(uint8 *));
351 vector = ad->vector = newvec;
354 memmove(vector + index + 1, vector + index, (count - index) * sizeof(uint8 *));
355 /* insert the new pointer in the vector */
356 vector[index] = result;
419 result = atomizer->vector[*cookie];