Lines Matching refs:g
55 struct re_guts *g = r->re_g; in regprint() local
60 fprintf(d, "%ld states, %zu categories", (long)g->nstates, in regprint()
61 g->ncategories); in regprint()
62 fprintf(d, ", first %ld last %ld", (long)g->firststate, in regprint()
63 (long)g->laststate); in regprint()
64 if (g->iflags&USEBOL) in regprint()
66 if (g->iflags&USEEOL) in regprint()
68 if (g->iflags&BAD) in regprint()
70 if (g->nsub > 0) in regprint()
71 fprintf(d, ", nsub=%ld", (long)g->nsub); in regprint()
72 if (g->must != NULL) in regprint()
73 fprintf(d, ", must(%ld) `%*s'", (long)g->mlen, (int)g->mlen, in regprint()
74 g->must); in regprint()
75 if (g->backrefs) in regprint()
77 if (g->nplus > 0) in regprint()
78 fprintf(d, ", nplus %ld", (long)g->nplus); in regprint()
80 s_print(g, d); in regprint()
81 for (size_t i = 0; i < g->ncategories; i++) { in regprint()
84 if (g->categories[c] == i) in regprint()
88 for (size_t i = 1; i < g->ncategories; i++) in regprint()
91 if (g->categories[c] == i) in regprint()
96 for (size_t i = 1; i < g->ncategories; i++) in regprint()
101 if (c <= CHAR_MAX && g->categories[c] == i) { in regprint()
122 s_print(struct re_guts *g, FILE *d) in s_print() argument
144 if (OP(g->strip[0]) != OEND) in s_print()
146 for (s = &g->strip[1]; !done; s++) { in s_print()
176 cs = &g->sets[opnd]; in s_print()
178 for (size_t i = 0; i < g->csetsize+1; i++) /* +1 flushes */ in s_print()
179 if (CHIN(cs, i) && i < g->csetsize) { in s_print()