diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-11-24 17:56:39 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-11-24 17:56:39 +0000 |
commit | d59a8b3e000058b06c6c29b782826d702b04630a (patch) | |
tree | 480fdee8b5c45b768047ba83ffed3614be37c713 /regcomp.c | |
parent | 36b0d4988e189eb69539628bc132047fcdcbac92 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |