From: Nicholas Clark Date: Fri, 24 Feb 2006 10:29:48 +0000 (+0000) Subject: As SVs can't both be in a pad, and the name of a variable in the pad, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1e7f542f0732947deb78e87eb5c42a3ee9fa9418;p=p5sagit%2Fp5-mst-13.2.git As SVs can't both be in a pad, and the name of a variable in the pad, overlay SVs_PADTMP with SVpad_TYPED and SVs_PADMY with SVpad_OUR. p4raw-id: //depot/perl@27297 --- diff --git a/pad.h b/pad.h index e56022f..b234e63 100644 --- a/pad.h +++ b/pad.h @@ -219,7 +219,8 @@ ling pad (lvalue) to C. Note that C is hijacked for this purpos */ #define PAD_COMPNAME_FLAGS(po) SvFLAGS(*av_fetch(PL_comppad_name, (po), FALSE)) -#define PAD_COMPNAME_FLAGS_isOUR(po) (PAD_COMPNAME_FLAGS(po) & SVpad_OUR) +#define PAD_COMPNAME_FLAGS_isOUR(po) \ + ((PAD_COMPNAME_FLAGS(po) & (SVpad_NAME|SVpad_OUR)) == (SVpad_NAME|SVpad_OUR)) #define PAD_COMPNAME_PV(po) SvPV_nolen(*av_fetch(PL_comppad_name, (po), FALSE)) #define PAD_COMPNAME_TYPE(po) pad_compname_type(po)