Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/regex/engine.c
Show First 20 Lines • Show All 1,062 Lines • ▼ Show 20 Lines | print(struct match *m, | ||||
if (!(m->eflags®_TRACE)) | if (!(m->eflags®_TRACE)) | ||||
return; | return; | ||||
fprintf(d, "%s", caption); | fprintf(d, "%s", caption); | ||||
if (ch != '\0') | if (ch != '\0') | ||||
fprintf(d, " %s", pchar(ch)); | fprintf(d, " %s", pchar(ch)); | ||||
for (i = 0; i < g->nstates; i++) | for (i = 0; i < g->nstates; i++) | ||||
if (ISSET(st, i)) { | if (ISSET(st, i)) { | ||||
fprintf(d, "%s%d", (first) ? "\t" : ", ", i); | fprintf(d, "%s%lu", (first) ? "\t" : ", ", i); | ||||
first = 0; | first = 0; | ||||
} | } | ||||
fprintf(d, "\n"); | fprintf(d, "\n"); | ||||
} | } | ||||
/* | /* | ||||
- at - print current situation | - at - print current situation | ||||
== #ifdef REDEBUG | == #ifdef REDEBUG | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |