aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-11-29 20:06:41 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-11-29 20:06:41 +0200
commit5b481a85111b33d9430b7f4c63474709ffbd0fab (patch)
tree12f3bd7856d27f6e2a957d16682458f5b7d74182 /dfa.h
parent2d0858d286df94ea822bf8f51656ecf7ac05b6ea (diff)
parent295eef206ed65daa9801fc72875b34994b23ca01 (diff)
downloadegawk-5b481a85111b33d9430b7f4c63474709ffbd0fab.tar.gz
egawk-5b481a85111b33d9430b7f4c63474709ffbd0fab.tar.bz2
egawk-5b481a85111b33d9430b7f4c63474709ffbd0fab.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'dfa.h')
-rw-r--r--dfa.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dfa.h b/dfa.h
index 0fd9b2c9..c68b4df7 100644
--- a/dfa.h
+++ b/dfa.h
@@ -110,6 +110,11 @@ 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;
+/* Copy the syntax settings from one dfa instance to another.
+ Saves considerable computation time if compiling many regular expressions
+ based on the same setting. */
+extern void dfacopysyntax (struct dfa *to, const struct dfa *from);
+
/* Free the storage held by the components of a struct dfa. */
extern void dfafree (struct dfa *);