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)
commit7b9e7f283ba98e0007af496cd2f9a0ad1c44ca33 (patch)
treed581b198d5c33dd7726f485baa6364e80b02efcb /generic/regcomp.c
parent1a111453396899c9453b493849a6d72cae0eba0c (diff)
downloadtcl-7b9e7f283ba98e0007af496cd2f9a0ad1c44ca33.zip
tcl-7b9e7f283ba98e0007af496cd2f9a0ad1c44ca33.tar.gz
tcl-7b9e7f283ba98e0007af496cd2f9a0ad1c44ca33.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;