4 newarc(Node *n, Rule *r, char *stem, Resub *match)
8 a = (Arc *)Malloc(sizeof(Arc));
11 a->stem = strdup(stem);
12 rcopy(a->match, match, NREGEXP);
20 dumpa(char *s, Arc *a)
24 Bprint(&bout, "%sArc@%p: n=%p r=%p flag=0x%x stem='%s'",
25 s, a, a->n, a->r, a->flag, a->stem);
27 Bprint(&bout, " prog='%s'", a->prog);
31 snprint(buf, sizeof(buf), "%s ", (*s == ' ')? s:"");
42 sym = symlook("NREP", S_VAR, 0);
44 w = (Word *) sym->value;
45 if (w && w->s && *w->s)
51 Bprint(&bout, "nreps = %d\n", nreps);