diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-29 20:06:08 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-11-29 20:06:08 +0200 |
commit | 295eef206ed65daa9801fc72875b34994b23ca01 (patch) | |
tree | ee11573a42ce94bb29c86ab9eade795d07ede294 /dfa.h | |
parent | 4931b67d7efa50576cea9f3045cc9d70ea779f2e (diff) | |
download | egawk-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 *); |