Lines Matching defs:vector
119 size_t len; // allocated length of bit vector in octets
120 char *vec; // allocated bit vector
162 vector is of a variable size, and grows as needed to accommodate the visited
305 // bit vector to indicate visiting this state. Each (syms,len,left) state has a
306 // variable size bit vector indexed by (mem,rem). The bit vector is lengthened
309 // point to vector for (syms,left,len), bit in vector for (mem,rem)
325 // see if we need to lengthen the vector in order to set the bit
328 char *vector;
333 vector = realloc(g.done[index].vec, length);
334 assert(vector != NULL && "out of memory");
335 memset(vector + g.done[index].len, 0, length - g.done[index].len);
338 // otherwise we need to make a new vector and zero it out
343 vector = calloc(length, 1);
344 assert(vector != NULL && "out of memory");
347 // install the new vector
349 g.done[index].vec = vector;
545 // allocate code vector