]> granicus.if.org Git - onig/commitdiff
fix invalid popsition of onig_init_for_match_at()
authorK.Kosako <kkosako0@gmail.com>
Mon, 25 Mar 2019 07:15:37 +0000 (16:15 +0900)
committerK.Kosako <kkosako0@gmail.com>
Mon, 25 Mar 2019 07:15:37 +0000 (16:15 +0900)
src/regexec.c

index ae6ae4c526d14a489def79648cd4ed4b63f88793..a8c9f0b22d312284fe54cd1ebb03ab746b23a3ec 100644 (file)
@@ -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 */