This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
As SVs can't both be in a pad, and the name of a variable in the pad,
authorNicholas Clark <nick@ccl4.org>
Fri, 24 Feb 2006 10:29:48 +0000 (10:29 +0000)
committerNicholas Clark <nick@ccl4.org>
Fri, 24 Feb 2006 10:29:48 +0000 (10:29 +0000)
overlay SVs_PADTMP with SVpad_TYPED and SVs_PADMY with SVpad_OUR.

p4raw-id: //depot/perl@27297

pad.h

diff --git a/pad.h b/pad.h
index e56022f..b234e63 100644 (file)
--- a/pad.h
+++ b/pad.h
@@ -219,7 +219,8 @@ ling pad (lvalue) to C<gen>.  Note that C<SvCUR_set> 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)