aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-23 05:48:38 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-23 05:48:38 +0300
commit9b2cc2ba3a51f012d9006596811a867eb7846265 (patch)
treeeba141889df81975d6b671f2faa20473b17442a2 /dfa.h
parent9346a8f73056487f614d81532c50b8703e3a3cf0 (diff)
downloadegawk-9b2cc2ba3a51f012d9006596811a867eb7846265.tar.gz
egawk-9b2cc2ba3a51f012d9006596811a867eb7846265.tar.bz2
egawk-9b2cc2ba3a51f012d9006596811a867eb7846265.zip
Update dfa, including API changes.
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);