reg->num_call = scan_env.num_call;
#endif
+#ifdef ONIG_DEBUG_PARSE
+ fprintf(stderr, "MAX PARSE DEPTH: %d\n", scan_env.max_parse_depth);
+ fprintf(stderr, "TREE (parsed)\n");
+ print_tree(stderr, root);
+ fprintf(stderr, "\n");
+#endif
+
r = setup_tree(root, reg, 0, &scan_env);
if (r != 0) goto err_unset;
}
#ifdef ONIG_DEBUG_PARSE
- fprintf(stderr, "MAX PARSE DEPTH: %d\n", scan_env.max_parse_depth);
+ fprintf(stderr, "TREE (after setup)\n");
print_tree(stderr, root);
+ fprintf(stderr, "\n");
#endif
reg->capture_history = scan_env.cap_history;