aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-11-29 20:06:08 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-11-29 20:06:08 +0200
commit295eef206ed65daa9801fc72875b34994b23ca01 (patch)
treeee11573a42ce94bb29c86ab9eade795d07ede294 /dfa.h
parent4931b67d7efa50576cea9f3045cc9d70ea779f2e (diff)
downloadegawk-295eef206ed65daa9801fc72875b34994b23ca01.tar.gz
egawk-295eef206ed65daa9801fc72875b34994b23ca01.tar.bz2
egawk-295eef206ed65daa9801fc72875b34994b23ca01.zip
Add dfacopysyntax function and use it.
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 *);