Lines Matching refs:done
147 /* The array for tracking visited states, done[], is itself indexed identically
162 vectors grow to total approximately 21 MB, in addition to the 4.3 MB done[]
170 local size_t size; /* number of elements in num and done */
173 local struct tab *done; /* states already evaluated array */
175 /* Index function for num[] and done[] */
178 /* Free allocated space. Uses globals code, num, and done. */
183 if (done != NULL) {
185 if (done[n].len)
186 free(done[n].vec);
187 free(done);
216 /* see if we've done this one already */
271 length = done[index].len;
272 if (offset < length && (done[index].vec[offset] & bit) != 0)
273 return 1; /* done this! */
284 vector = realloc(done[index].vec, length);
286 memset(vector + done[index].len, 0, length - done[index].len);
305 done[index].len = length;
306 done[index].vec = vector;
310 done[index].vec[offset] |= bit;
318 done. */
429 /* done */
430 printf("done: maximum of %d table entries\n", large);
465 done = NULL;
548 /* allocate and clear done array for beenhere() */
550 done = NULL;
552 (done = calloc(size, sizeof(struct tab))) == NULL) {
566 /* done */