MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / print

Function print

regex/engine.c:941–966  ·  view source on GitHub ↗

- print - print a set of states == #ifdef REDEBUG == static void print(struct match *m, char *caption, states st, \ == int ch, FILE *d); == #endif */

(m, caption, st, ch, d)

Source from the content-addressed store, hash-verified

939 == #endif
940 */
941static void
942print(m, caption, st, ch, d)
943struct match *m;
944char *caption;
945states st;
946int ch;
947FILE *d;
948{
949 register struct re_guts *g = m->g;
950 register int i;
951 register int first = 1;
952 char buf[10];
953
954 if (!(m->eflags&MY_REG_TRACE))
955 return;
956
957 fprintf(d, "%s", caption);
958 if (ch != '\0')
959 fprintf(d, " %s", printchar(ch,buf));
960 for (i = 0; i < g->nstates; i++)
961 if (ISSET(st, i)) {
962 fprintf(d, "%s%d", (first) ? "\t" : ", ", i);
963 first = 0;
964 }
965 fprintf(d, "\n");
966}
967
968/*
969 - at - print current situation

Callers 13

printMethod · 0.85
printMethod · 0.85
printMethod · 0.85
printMethod · 0.85
printMethod · 0.85
printMethod · 0.85
printMethod · 0.85
printMethod · 0.85
printMethod · 0.85
print_item_w_nameMethod · 0.85
print_for_orderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected