From b75d1cc989ab844249798127240149ff902ae5cd Mon Sep 17 00:00:00 2001 From: kosako Date: Thu, 25 Aug 2016 16:23:22 +0900 Subject: [PATCH] reduce DEBUG_OOB --- src/regparse.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/regparse.c b/src/regparse.c index 7df9c35..3c47421 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -33,7 +33,6 @@ #ifdef DEBUG_OOB #include -static const UChar* PatternStart; static const UChar* PatternEnd; #endif @@ -241,9 +240,6 @@ onig_strcpy(UChar* dest, const UChar* src, const UChar* end) #ifdef DEBUG_OOB if (end > PatternEnd) fprintf(stderr, "end: %p, END: %p\n", end, PatternEnd); - - if (src < PatternStart) - fprintf(stderr, "start: %p, START: %p\n", src, PatternStart); #endif } } @@ -5343,8 +5339,7 @@ onig_parse_make_tree(Node** root, const UChar* pattern, const UChar* end, fprintf(stderr, "onig_parse_make_tree: %p - %p, %d\n", pattern, end, (int )(end - pattern)); */ - PatternStart = pattern; - PatternEnd = end; + PatternEnd = end; #endif *root = NULL; -- 2.40.0