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 | 2fbb537054087a99e3323cd3167814332d1053c0 (patch) | |
tree | 4aa18b0dcf7b94804b0d953ff00717b62ad1d39c /generic/regcomp.c | |
parent | 55174c7e8aa6970f900d66febf97b1ecbc3e19e1 (diff) | |
download | tcl-2fbb537054087a99e3323cd3167814332d1053c0.zip tcl-2fbb537054087a99e3323cd3167814332d1053c0.tar.gz tcl-2fbb537054087a99e3323cd3167814332d1053c0.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; |