diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-08-07 09:33:20 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-08-07 09:33:20 +0200 |
commit | 07b900d0bf8e732a347d27a5936b790a316c3197 (patch) | |
tree | 2443bfdda69965757d8ce335cda1a28bb7327834 /test/testu.c | |
parent | 80e416a8ea3bd56ec54a74a93ddc2c61a398679a (diff) | |
parent | 1fb4b2b100d76cfa362cd021760b7cc0038cf55d (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'test/testu.c')
-rw-r--r-- | test/testu.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/testu.c b/test/testu.c index 4b053e5..397da95 100644 --- a/test/testu.c +++ b/test/testu.c @@ -116,28 +116,13 @@ static void xx(char* pattern, char* str, int from, int to, int mem, int not) #else regex_t* reg; - OnigCompileInfo ci; OnigErrorInfo einfo; uconv(pattern, cpat, ulen(pattern)); uconv(str, cstr, ulen(str)); -#if 0 r = onig_new(®, (UChar* )pattern, (UChar* )(pattern + ulen(pattern)), ONIG_OPTION_DEFAULT, ENC, ONIG_SYNTAX_DEFAULT, &einfo); -#else - ci.num_of_elements = 5; - ci.pattern_enc = ENC; - ci.target_enc = ENC; - ci.syntax = ONIG_SYNTAX_DEFAULT; - ci.option = ONIG_OPTION_DEFAULT; - ci.case_fold_flag = ONIGENC_CASE_FOLD_DEFAULT; - - r = onig_new_deluxe(®, (UChar* )pattern, - (UChar* )(pattern + ulen(pattern)), - &ci, &einfo); -#endif - if (r) { char s[ONIG_MAX_ERROR_MESSAGE_LEN]; onig_error_code_to_str((UChar* )s, r, &einfo); |