]> git.vpit.fr Git - perl/modules/autovivification.git/commitdiff
Really be compatible with the OP_PARENT feature
authorVincent Pit <vince@profvince.com>
Fri, 6 Feb 2015 12:17:37 +0000 (13:17 +0100)
committerVincent Pit <vince@profvince.com>
Fri, 6 Feb 2015 12:18:45 +0000 (13:18 +0100)
OP_SIBLING() has been renamed to OpSIBLING() in perl 5.21.7.

autovivification.xs

index f0e00473b70709ee7b6915551e459f90db07f9ff..852723b0e88abcb252ac4ef8e034d46aa047a4e3 100644 (file)
 # define A_HAS_RPEEP A_HAS_PERL(5, 13, 5)
 #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
 
 /* ... Thread safety and multiplicity ...................................... */
@@ -933,7 +937,7 @@ STATIC OP *a_ck_xslice(pTHX_ OP *o) {
   case OP_HSLICE:
    old_ck = a_old_ck_hslice;
    if (hint & A_HINT_DO)
-    a_recheck_rv2xv(OP_SIBLING(cUNOPo->op_first), OP_RV2HV, a_pp_rv2hv);
+    a_recheck_rv2xv(OpSIBLING(cUNOPo->op_first), OP_RV2HV, a_pp_rv2hv);
    break;
  }
  o = old_ck(aTHX_ o);