summaryrefslogtreecommitdiffstats
path: root/generic/regcomp.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-10-20 18:32:25 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-10-20 18:32:25 (GMT)
commitf12c713f8e323f0c7872d83c93b2371c7eb42365 (patch)
treeeec76819493f794df45194cbc87e7e3bef721177 /generic/regcomp.c
parent8ed7672ab71b54afa94e164e73fdc274b0b39771 (diff)
downloadtcl-f12c713f8e323f0c7872d83c93b2371c7eb42365.zip
tcl-f12c713f8e323f0c7872d83c93b2371c7eb42365.tar.gz
tcl-f12c713f8e323f0c7872d83c93b2371c7eb42365.tar.bz2
Adaptation of re-better-fixempties.patch from Tom Lane @ postgres.
Diffstat (limited to 'generic/regcomp.c')
-rw-r--r--generic/regcomp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/regcomp.c b/generic/regcomp.c
index b01311b..985cb93 100644
--- a/generic/regcomp.c
+++ b/generic/regcomp.c
@@ -124,8 +124,6 @@ static struct arc *allocarc(struct nfa *, struct state *);
static void freearc(struct nfa *, struct arc *);
static void changearctarget(struct arc *, struct state *);
static int hasnonemptyout(struct state *);
-static int nonemptyouts(struct state *);
-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 sortins(struct nfa *, struct state *);
@@ -154,8 +152,8 @@ static int push(struct nfa *, struct arc *);
#define COMPATIBLE 3 /* compatible but not satisfied yet */
static int combine(struct arc *, struct arc *);
static void fixempties(struct nfa *, FILE *);
-static struct state *emptyreachable(struct state *, struct state *);
-static void replaceempty(struct nfa *, struct state *, struct state *);
+static struct state *emptyreachable(struct nfa *, struct state *,
+ struct state *, struct arc **);
static int isconstraintarc(struct arc *);
static int hasconstraintout(struct state *);
static void fixconstraintloops(struct nfa *, FILE *);