diff options
author | dgp <dgp@users.sourceforge.net> | 2013-03-06 17:30:14 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-03-06 17:30:14 (GMT) |
commit | 0ea582d8785e76223d06415791097fc3400c7bbf (patch) | |
tree | 4aa18b0dcf7b94804b0d953ff00717b62ad1d39c /generic/regcomp.c | |
parent | 596e86d26f839d7ffb40012c2c511e33b6de0b12 (diff) | |
download | tcl-0ea582d8785e76223d06415791097fc3400c7bbf.zip tcl-0ea582d8785e76223d06415791097fc3400c7bbf.tar.gz tcl-0ea582d8785e76223d06415791097fc3400c7bbf.tar.bz2 |
Use flag argument to combine copy(nonempty)* routines into copy* routines.
Diffstat (limited to 'generic/regcomp.c')
-rw-r--r-- | generic/regcomp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/regcomp.c b/generic/regcomp.c index 68bfb30..8880318 100644 --- a/generic/regcomp.c +++ b/generic/regcomp.c @@ -127,11 +127,9 @@ static int nonemptyins(struct state *); static struct arc *findarc(struct state *, int, pcolor); static void cparc(struct nfa *, struct arc *, struct state *, struct state *); static void moveins(struct nfa *, struct state *, struct state *); -static void copyins(struct nfa *, struct state *, struct state *); -static void copynonemptyins(struct nfa *, struct state *, struct state *); +static void copyins(struct nfa *, struct state *, struct state *, int); static void moveouts(struct nfa *, struct state *, struct state *); -static void copyouts(struct nfa *, struct state *, struct state *); -static void copynonemptyouts(struct nfa *, struct state *, struct state *); +static void copyouts(struct nfa *, struct state *, struct state *, int); static void cloneouts(struct nfa *, struct state *, struct state *, struct state *, int); static void delsub(struct nfa *, struct state *, struct state *); static void deltraverse(struct nfa *, struct state *, struct state *); @@ -613,7 +611,7 @@ makesearch( for (s=slist ; s!=NULL ; s=s2) { s2 = newstate(nfa); - copyouts(nfa, s, s2); + copyouts(nfa, s, s2, 1); for (a=s->ins ; a!=NULL ; a=b) { b = a->inchain; |