| Store | Cart

Re: perl 5.22.0 blockers, March 22nd

From: Eric Brine <ikeg...@adaelis.com>
Fri, 27 Mar 2015 15:18:07 -0400
On Mon, Mar 23, 2015 at 6:28 PM, Dave Mitchell <dav...@iabyn.com> wrote:

> PERL_OP_PARENT is most definitely *not* intended to be a supported> configuration for 5.22. It will become so (and maybe considered to become> enabled by default) at such point when most (for some definition of> "most") CPAN modules that mess with op_sibling have been modified to> handle it.>> But I *would* like any new API macros and functions related to the changes> in op_sibling to get into 5.22 if possible.>> (I've been away the last few days; I'll reply properly to your op_sibling> posts properly when I've had time to read and digest them)>

Any suggestions as to what I should change for the following code (used in
Syntax::Feature::QwComments and ::Loop)?

STATIC OP* remove_sub_call(pTHX_ OP* entersubop) {
#define remove_sub_call(a) remove_sub_call(aTHX_ a)
   OP* pushop;
   OP* realop;

   pushop = cUNOPx(entersubop)->op_first;
   if (!pushop->op_sibling)
      pushop = cUNOPx(pushop)->op_first;

   realop = pushop->op_sibling;
   if (!realop || !realop->op_sibling)
      return entersubop;

   pushop->op_sibling = realop->op_sibling;
   realop->op_sibling = NULL;
   op_free(entersubop);
   return realop;
}

Recent Messages in this Thread
Ricardo Signes Mar 22, 2015 11:18 pm
Zefram Mar 23, 2015 09:22 am
Dave Mitchell Mar 23, 2015 10:28 pm
Eric Brine Mar 27, 2015 07:18 pm
Zefram Mar 27, 2015 08:11 pm
Leon Timmermans Mar 26, 2015 10:46 pm
Messages in this thread