From: K.Kosako Date: Mon, 25 Mar 2019 07:15:37 +0000 (+0900) Subject: fix invalid popsition of onig_init_for_match_at() X-Git-Tag: v6.9.2_rc1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ca20cdadfe8c962256f7695bcff8aabdb2e64e8;p=onig fix invalid popsition of onig_init_for_match_at() --- diff --git a/src/regexec.c b/src/regexec.c index ae6ae4c..a8c9f0b 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -5162,6 +5162,16 @@ onig_copy_encoding(OnigEncoding to, OnigEncoding from) *to = *from; } +#ifdef USE_DIRECT_THREADED_CODE +extern int +onig_init_for_match_at(regex_t* reg) +{ + return match_at(reg, (const UChar* )NULL, (const UChar* )NULL, + (const UChar* )NULL, (const UChar* )NULL, (UChar* )NULL, + (MatchArg* )NULL); +} +#endif + /* for callout functions */ @@ -5395,16 +5405,6 @@ onig_get_used_stack_size_in_callout(OnigCalloutArgs* a, int* used_num, int* used return ONIG_NORMAL; } -#ifdef USE_DIRECT_THREADED_CODE -extern int -onig_init_for_match_at(regex_t* reg) -{ - return match_at(reg, (const UChar* )NULL, (const UChar* )NULL, - (const UChar* )NULL, (const UChar* )NULL, (UChar* )NULL, - (MatchArg* )NULL); -} -#endif - /* builtin callout functions */