summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-03-28 15:29:14 +0000
committerDavid Mitchell <davem@iabyn.com>2013-04-12 11:29:55 +0100
commitefd541675261f15c09a9fee926b7d145a59daaa0 (patch)
tree7e7ac39a1a5efe9e2b455e7c67118d64bdde542f /regcomp.c
parent55269f4f7ec374aedc4b04fe74db5d9f3a2886d6 (diff)
downloadperl-efd541675261f15c09a9fee926b7d145a59daaa0.tar.gz
re_op_compile(): reapply debugging statements
These were temporarily removed a few commits ago to make rebasing easier. (And since the code's been simplified in the conflicting branch, not so many debug statements had to be added back as were in the original).
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index a7f4bb6600..f680717655 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -5364,6 +5364,10 @@ Perl_re_op_compile(pTHX_ SV ** const patternp, int pat_count,
int n = 0;
STRLEN orig_patlen = 0;
+ DEBUG_PARSE_r(PerlIO_printf(Perl_debug_log,
+ "Assembling pattern from %d elements%s\n", pat_count,
+ orig_rx_flags & RXf_SPLIT ? " for split" : ""));
+
/* apply magic and RE overloading to each arg */
for (svp = new_patternp; svp < new_patternp + pat_count; svp++) {
SV *rx = *svp;
@@ -5526,6 +5530,10 @@ Perl_re_op_compile(pTHX_ SV ** const patternp, int pat_count,
*is_bare_re = TRUE;
SvREFCNT_inc(re);
Safefree(pRExC_state->code_blocks);
+ DEBUG_PARSE_r(PerlIO_printf(Perl_debug_log,
+ "Precompiled pattern%s\n",
+ orig_rx_flags & RXf_SPLIT ? " for split" : ""));
+
return (REGEXP*)re;
}
}