From 6ca20cdadfe8c962256f7695bcff8aabdb2e64e8 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Mon, 25 Mar 2019 16:15:37 +0900 Subject: [PATCH] fix invalid popsition of onig_init_for_match_at() --- src/regexec.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 */ -- 2.40.0