Home | History | Annotate | Download | only in nawk-20071023

Lines Matching full:setvec

59 int	*setvec;
85 if (setvec == 0) { /* first time through any RE */
87 setvec = (int *) malloc(maxsetvec * sizeof(int));
89 if (setvec == 0 || tmpset == 0)
351 setvec = (int *) realloc(setvec, maxsetvec * sizeof(int));
353 if (setvec == 0 || tmpset == 0)
357 setvec[i] = 0;
359 follow(v); /* computes setvec and setcnt */
365 if (setvec[i] == 1)
381 int first(Node *p) /* collects initially active leaves of p into setvec */
392 setvec = (int *) realloc(setvec, maxsetvec * sizeof(int));
394 if (setvec == 0 || tmpset == 0)
398 setvec[lp] = 0;
401 if (setvec[lp] != 1) {
402 setvec[lp] = 1;
427 void follow(Node *v) /* collects leaves that can follow v into setvec */
858 setvec = (int *) realloc(setvec, maxsetvec * sizeof(int));
860 if (setvec == 0 || tmpset == 0)
864 setvec[i] = 0;
866 /* compute positions of gototab[s,c] into setvec */
880 setvec = (int *) realloc(setvec, maxsetvec * sizeof(int));
881 tmpset = (int *) realloc(setvec, maxsetvec * sizeof(int));
882 if (setvec == 0 || tmpset == 0)
885 if (setvec[q[j]] == 0) {
887 setvec[q[j]] = 1;
893 /* determine if setvec is a previous state */
897 if (setvec[i]) {
908 /* setvec is state i */
932 if (setvec[f->accept])