diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2020-04-20 20:33:58 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2020-04-20 20:33:58 +0200 |
commit | 73c6133c32cddae59813cbadf655cb50a3a7356a (patch) | |
tree | 0935fb6da7f1d9728b42ddf08395a0e977e1c228 /sample/names.c | |
parent | 043fff5b6f2461aeccb1c62cb771826cfe301832 (diff) | |
parent | 6b986090d954dbac91bbb3c43ce7c3328c91a780 (diff) |
Update upstream source from tag 'upstream/6.9.5'
Update to upstream version '6.9.5'
with Debian dir 1312d9badb7f1c47d032cf09765074e8fd80c991
Diffstat (limited to 'sample/names.c')
-rw-r--r-- | sample/names.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sample/names.c b/sample/names.c index 9b1eb24..bf47f63 100644 --- a/sample/names.c +++ b/sample/names.c @@ -31,11 +31,12 @@ extern int main(int argc, char* argv[]) regex_t* reg; OnigErrorInfo einfo; OnigRegion *region; + OnigEncoding use_encs[1]; static UChar* pattern = (UChar* )"(?<foo>a*)(?<bar>b*)(?<foo>c*)"; static UChar* str = (UChar* )"aaabbbbcc"; - 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(®, pattern, pattern + strlen((char* )pattern), |