aboutsummaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-09-24 21:24:17 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-09-24 21:24:17 +0300
commit251e47f4a1639244b8bfedd75ce6b4a26ec5949a (patch)
tree71c9f43bf43ab684b4d14f0379bcb9fc6f74b46a /support
parent55eee619ac637e29c0fe847cc89cda78cc18c28d (diff)
parentc32959290957c70cd6be333ec6c0b6f1bde4cd80 (diff)
downloadegawk-251e47f4a1639244b8bfedd75ce6b4a26ec5949a.tar.gz
egawk-251e47f4a1639244b8bfedd75ce6b4a26ec5949a.tar.bz2
egawk-251e47f4a1639244b8bfedd75ce6b4a26ec5949a.zip
Merge branch 'master' into feature/iolint
Diffstat (limited to 'support')
-rw-r--r--support/ChangeLog4
-rw-r--r--support/dfa.c6
-rw-r--r--support/dfa.h3
3 files changed, 10 insertions, 3 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 5f6e7bc2..92caed29 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,7 @@
+2020-09-24 Arnold D. Robbins <arnold@skeeve.com>
+
+ * dfa.c, dfa.h: Synced from GNULIB.
+
2020-09-18 Arnold D. Robbins <arnold@skeeve.com>
* cdefs.h, dfa.c, intprops.h, regcomp.c, regex.h, regex_internal.h,
diff --git a/support/dfa.c b/support/dfa.c
index 641f422a..d47acfe2 100644
--- a/support/dfa.c
+++ b/support/dfa.c
@@ -3656,8 +3656,8 @@ free_mbdata (struct dfa *d)
}
/* Return true if every construct in D is supported by this DFA matcher. */
-static bool _GL_ATTRIBUTE_PURE
-dfa_supported (struct dfa const *d)
+bool
+dfasupported (struct dfa const *d)
{
for (idx_t i = 0; i < d->tindex; i++)
{
@@ -3813,7 +3813,7 @@ dfacomp (char const *s, idx_t len, struct dfa *d, bool searchflag)
dfassbuild (d);
- if (dfa_supported (d))
+ if (dfasupported (d))
{
maybe_disable_superset_dfa (d);
dfaanalyze (d, searchflag);
diff --git a/support/dfa.h b/support/dfa.h
index c5bff898..2f77f263 100644
--- a/support/dfa.h
+++ b/support/dfa.h
@@ -113,6 +113,9 @@ extern struct dfa *dfasuperset (struct dfa const *d) _GL_ATTRIBUTE_PURE;
/* The DFA is likely to be fast. */
extern bool dfaisfast (struct dfa const *) _GL_ATTRIBUTE_PURE;
+/* Return true if every construct in D is supported by this DFA matcher. */
+extern bool dfasupported (struct dfa const *) _GL_ATTRIBUTE_PURE;
+
/* Free the storage held by the components of a struct dfa. */
extern void dfafree (struct dfa *);