diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-23 06:05:01 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-23 06:05:01 +0300 |
commit | 273c35356b59a2d3b989bd568f577aaf800dc4a5 (patch) | |
tree | 3bc9b2f5a3c5466f2d436c1029e92cf2f221fb4c /dfa.h | |
parent | 4a920a6b4214dfc118eeeffd28b3dff33127a9b5 (diff) | |
parent | 546f826812728eb8a7b9e51408929c7314b92d31 (diff) | |
download | egawk-273c35356b59a2d3b989bd568f577aaf800dc4a5.tar.gz egawk-273c35356b59a2d3b989bd568f577aaf800dc4a5.tar.bz2 egawk-273c35356b59a2d3b989bd568f577aaf800dc4a5.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'dfa.h')
-rw-r--r-- | dfa.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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); |