From: Vincent Pit Date: Wed, 22 Aug 2012 09:24:55 +0000 (+0200) Subject: Fix build with the new PADLIST API from 5.17.4 X-Git-Tag: rt79182 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=17f23bbed57e48ce42e5d5ff9aa04c0d4dd1e9d8;p=perl%2Fmodules%2FScope-Upper.git Fix build with the new PADLIST API from 5.17.4 --- diff --git a/Upper.xs b/Upper.xs index c4e1038..3d2472a 100644 --- a/Upper.xs +++ b/Upper.xs @@ -116,6 +116,10 @@ STATIC SV *su_newSV_type(pTHX_ svtype t) { # define CvISXSUB(C) CvXSUB(C) #endif +#ifndef PADLIST_ARRAY +# define PADLIST_ARRAY(P) AvARRAY(P) +#endif + #ifndef CxHASARGS # define CxHASARGS(C) ((C)->blk_sub.hasargs) #endif @@ -1249,7 +1253,7 @@ done: #endif /* SU_UPLEVEL_HIJACKS_RUNOPS */ -#define su_at_underscore(C) AvARRAY(AvARRAY(CvPADLIST(C))[CvDEPTH(C)])[0] +#define su_at_underscore(C) AvARRAY(PADLIST_ARRAY(CvPADLIST(C))[CvDEPTH(C)])[0] STATIC void su_uplevel_restore(pTHX_ void *sus_) { su_uplevel_ud *sud = sus_;