]> granicus.if.org Git - onig/commitdiff
add output of bt_mem_start and bt_mem_end in ONIG_DEBUG_COMPILE
authorK.Kosako <kosako@sofnec.co.jp>
Fri, 2 Jun 2017 04:43:10 +0000 (13:43 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Fri, 2 Jun 2017 04:43:10 +0000 (13:43 +0900)
src/regcomp.c

index aad6e2cf83876024e1b2b810c1106ce21bb35112..88a56082f57638386d338ed5e3dafbd0b638c9ac 100644 (file)
@@ -6105,6 +6105,8 @@ print_compiled_byte_code_list(FILE* f, regex_t* reg)
   UChar* start = reg->p;
   UChar* end   = reg->p + reg->used;
 
+  fprintf(f, "bt_mem_start: 0x%x, bt_mem_end: 0x%x\n",
+          reg->bt_mem_start, reg->bt_mem_end);
   fprintf(f, "code-length: %d\n", reg->used);
 
   bp = start;