# define HvNAMELEN_get(H) strlen(HvNAME_get(H))
#endif
-#ifndef OP_SIBLING
-# define OP_SIBLING(O) ((O)->op_sibling)
+#ifndef OpSIBLING
+# ifdef OP_SIBLING
+# define OpSIBLING(O) OP_SIBLING(O)
+# else
+# define OpSIBLING(O) ((O)->op_sibling)
+# endif
#endif
#ifndef SvREFCNT_inc_simple_void_NN
* Moreover, for non-special padrange ops (i.e. that aren't for
* my (...) = @_), the first original padxv is its sibling or nephew.
*/
- OP *kid = OP_SIBLING(o);
+ OP *kid = OpSIBLING(o);
if (kid->op_type == OP_NULL && kid->op_flags & OPf_KIDS) {
kid = kUNOP->op_first;
if (kid->op_type == OP_NULL)
- kid = OP_SIBLING(kid);
+ kid = OpSIBLING(kid);
}
lt_maybe_padrange_setup(o, kid);
}
&& op->op_flags & OPf_SPECIAL) {
const OP *start = cUNOPx(cBINOPo->op_last)->op_first;
if (start->op_type == OP_PUSHMARK)
- start = OP_SIBLING(start);
+ start = OpSIBLING(start);
lt_maybe_padrange_setup(op, start);
}
break;