summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2010-11-24 17:56:39 +0000
committerNicholas Clark <nick@ccl4.org>2010-11-24 17:56:39 +0000
commitd59a8b3e000058b06c6c29b782826d702b04630a (patch)
tree480fdee8b5c45b768047ba83ffed3614be37c713 /regcomp.c
parent36b0d4988e189eb69539628bc132047fcdcbac92 (diff)
downloadperl-d59a8b3e000058b06c6c29b782826d702b04630a.tar.gz
Deprecate sv_compile_2op()
It attempted to provide an API to compile code down to an optree, but failed to bind correctly to lexicals in the enclosing scope. It's not possible to fix this problem within the constraints of its parameters and return value. Searches suggest +that nothing on CPAN is using it, so removing it should have zero impact.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index f01d54507d..07834a034e 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -6074,7 +6074,7 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp,U32 depth)
ENTER;
Perl_save_re_context(aTHX);
- rop = sv_compile_2op(sv, &sop, "re", &pad);
+ rop = Perl_sv_compile_2op_is_broken(aTHX_ sv, &sop, "re", &pad);
sop->op_private |= OPpREFCOUNTED;
/* re_dup will OpREFCNT_inc */
OpREFCNT_set(sop, 1);