summaryrefslogtreecommitdiffstats
path: root/generic/regcomp.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-03-06 17:33:39 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-03-06 17:33:39 (GMT)
commit9ddb2d5b89db7bc23eb859ec16e10c2c43404c5f (patch)
treed581b198d5c33dd7726f485baa6364e80b02efcb /generic/regcomp.c
parentfcab8a84a734d1b46afcc12cd5b6416b0b37669c (diff)
downloadtcl-9ddb2d5b89db7bc23eb859ec16e10c2c43404c5f.zip
tcl-9ddb2d5b89db7bc23eb859ec16e10c2c43404c5f.tar.gz
tcl-9ddb2d5b89db7bc23eb859ec16e10c2c43404c5f.tar.bz2
Use flag argument to combine copy(nonempty)* routines into copy* routines.
Diffstat (limited to 'generic/regcomp.c')
-rw-r--r--generic/regcomp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/regcomp.c b/generic/regcomp.c
index aebe1ab..c93eb24 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;