aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-23 06:05:57 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-23 06:05:57 +0300
commitcce4e42a5c95d8c5c0eeef1e6059f450b1d13482 (patch)
tree1a7650057e79988324f8d6f3c6a4bb3114126c85 /dfa.h
parent76992be54568a1b4bfc853e0bd390ea64ecdf5fe (diff)
parent273c35356b59a2d3b989bd568f577aaf800dc4a5 (diff)
downloadegawk-cce4e42a5c95d8c5c0eeef1e6059f450b1d13482.tar.gz
egawk-cce4e42a5c95d8c5c0eeef1e6059f450b1d13482.tar.bz2
egawk-cce4e42a5c95d8c5c0eeef1e6059f450b1d13482.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'dfa.h')
-rw-r--r--dfa.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/dfa.h b/dfa.h
index 242f4cfa..02f56f44 100644
--- a/dfa.h
+++ b/dfa.h
@@ -54,10 +54,10 @@ extern struct dfamust *dfamust (struct dfa const *);
/* Free the storage held by the components of a struct dfamust. */
extern void dfamustfree (struct dfamust *);
-/* dfasyntax() takes three arguments; the first sets the syntax bits described
- earlier in this file, the second sets the case-folding flag, and the
- third specifies the line terminator. */
-extern void dfasyntax (reg_syntax_t, bool, unsigned char);
+/* dfasyntax() takes four arguments; the first is the dfa to operate on, the
+ second sets the syntax bits described earlier in this file, the third sets
+ the case-folding flag, and the fourth specifies the line terminator. */
+extern void dfasyntax (struct dfa *, reg_syntax_t, bool, unsigned char);
/* Compile the given string of the given length into the given struct dfa.
Final argument is a flag specifying whether to build a searching or an
@@ -104,4 +104,7 @@ extern void dfawarn (const char *);
The user must supply a dfaerror. */
extern _Noreturn void dfaerror (const char *);
-extern bool using_utf8 (void);
+extern bool dfa_using_utf8 (void) _GL_ATTRIBUTE_PURE;
+
+/* This must be called before calling any of the above dfa*() functions. */
+extern void dfa_init (void);