Home | History | Annotate | Download | only in examples

Lines Matching defs:vector

113     size_t len;         /* length of bit vector in char's */
114 char *vec; /* allocated bit vector */
157 vector is of a variable size, and grows as needed to accommodate the visited
255 bit vector to indicate visiting this state. Each (syms,len,left) state
256 has a variable size bit vector indexed by (mem,rem). The bit vector is
260 size_t index; /* index for this state's bit vector */
261 size_t offset; /* offset in this state's bit vector */
263 size_t length; /* length of the bit vector in bytes */
264 char *vector; /* new or enlarged bit vector */
266 /* point to vector for (syms,left,len), bit in vector for (mem,rem) */
280 /* see if we need to lengthen the vector in order to set the bit */
287 vector = realloc(done[index].vec, length);
288 if (vector != NULL)
289 memset(vector + done[index].len, 0, length - done[index].len);
292 /* otherwise we need to make a new vector and zero it out */
297 vector = calloc(length, sizeof(char));
301 if (vector == NULL) {
307 /* install the new vector */
309 done[index].vec = vector;
510 /* allocate code vector */