]> granicus.if.org Git - onig/commitdiff
disable to call check_each_regex_search_time()
authorK.Kosako <kosako@sofnec.co.jp>
Wed, 25 Sep 2019 06:25:37 +0000 (15:25 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Wed, 25 Sep 2019 06:25:37 +0000 (15:25 +0900)
harnesses/regset-harness.c

index e3b5e37d69908038c8295ad22af1c3e07eb271dc..f66c589d726535d2263ee8d21a2ea222168d1c7c 100644 (file)
 
 #define RETRY_LIMIT    500
 
-typedef unsigned char uint8_t;
+#ifdef WITH_READ_MAIN
+//#define CHECK_EACH_REGEX_SEARCH_TIME
+#endif
 
+typedef unsigned char uint8_t;
 static OnigEncoding ENC;
 
-#if 0
+#ifdef CHECK_EACH_REGEX_SEARCH_TIME
 static double
 get_sec(struct timespec* ts, struct timespec* te)
 {
@@ -180,8 +183,8 @@ exec(OnigEncoding enc, OnigOptionType options,
   if (onigenc_is_valid_mbc_string(enc, str, end) != 0) {
     VALID_STRING_COUNT++;
     r = search(set, lead, str, end);
-#ifdef WITH_READ_MAIN
-    //r = check_each_regex_search_time(set, str, end);
+#ifdef CHECK_EACH_REGEX_SEARCH_TIME
+    r = check_each_regex_search_time(set, str, end);
 #endif
   }