Lines Matching refs:done
150 /* The array for tracking visited states, done[], is itself indexed identically
165 vectors grow to total approximately 21 MB, in addition to the 4.3 MB done[]
173 local size_t size; /* number of elements in num and done */
176 local struct tab *done; /* states already evaluated array */
178 /* Index function for num[] and done[] */
181 /* Free allocated space. Uses globals code, num, and done. */
186 if (done != NULL) {
188 if (done[n].len)
189 free(done[n].vec);
190 free(done);
219 /* see if we've done this one already */
274 length = done[index].len;
275 if (offset < length && (done[index].vec[offset] & bit) != 0)
276 return 1; /* done this! */
287 vector = realloc(done[index].vec, length);
289 memset(vector + done[index].len, 0, length - done[index].len);
308 done[index].len = length;
309 done[index].vec = vector;
313 done[index].vec[offset] |= bit;
321 done. */
432 /* done */
433 printf("done: maximum of %d table entries\n", large);
469 done = NULL;
551 /* allocate and clear done array for beenhere() */
553 done = NULL;
555 (done = calloc(size, sizeof(struct tab))) == NULL) {
569 /* done */