summaryrefslogtreecommitdiff
path: root/sample/simple.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:51 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-20 20:33:51 +0200
commit6b986090d954dbac91bbb3c43ce7c3328c91a780 (patch)
tree34b34e41a3f7b7f4794c75be4482bb14695f36a9 /sample/simple.c
parent4216de6a3336cbc6dddb572cb7e6ab6193bf3729 (diff)
New upstream version 6.9.5upstream/6.9.5
Diffstat (limited to 'sample/simple.c')
-rw-r--r--sample/simple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/simple.c b/sample/simple.c
index 5a14042..a08ea86 100644
--- a/sample/simple.c
+++ b/sample/simple.c
@@ -12,11 +12,12 @@ extern int main(int argc, char* argv[])
regex_t* reg;
OnigErrorInfo einfo;
OnigRegion *region;
+ OnigEncoding use_encs[1];
static UChar* pattern = (UChar* )"a(.*)b|[e-f]+";
static UChar* str = (UChar* )"zzzzaffffffffb";
- OnigEncoding use_encs[] = { ONIG_ENCODING_ASCII };
+ use_encs[0] = ONIG_ENCODING_ASCII;
onig_initialize(use_encs, sizeof(use_encs)/sizeof(use_encs[0]));
r = onig_new(&reg, pattern, pattern + strlen((char* )pattern),