summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-23 06:24:50 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-09-24 22:05:36 -0700
commit145bf8eec5be8c17bd592ec8d28efb239bdafa93 (patch)
tree9c0676d6c0128eebaf0ac8eed3c1aa625f55981f /sv.h
parenta9f1090bfdfd2dc65f4d48a010d12f08dfeeedb5 (diff)
downloadperl-145bf8eec5be8c17bd592ec8d28efb239bdafa93.tar.gz
Remove most uses of PADMY
SVs_PADMY is now 0, and SvPADMY means !SvPADTMP.
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sv.h b/sv.h
index 4b6bace751..53f28e567a 100644
--- a/sv.h
+++ b/sv.h
@@ -1052,13 +1052,15 @@ sv_force_normal does nothing.
#define SVs_PADMY 0
#define SvPADMY(sv) !(SvFLAGS(sv) & SVs_PADTMP)
-#define SvPADMY_on(sv) SvPADTMP_off(sv)
+#ifndef PERL_CORE
+# define SvPADMY_on(sv) SvPADTMP_off(sv)
+#endif
#define SvPADTMP(sv) (SvFLAGS(sv) & (SVs_PADTMP))
#define SvPADSTALE(sv) (SvFLAGS(sv) & (SVs_PADSTALE))
-#define SvPADTMP_on(sv) S_SvPADTMP_on(MUTABLE_SV(sv))
-#define SvPADTMP_off(sv) S_SvPADTMP_off(MUTABLE_SV(sv))
+#define SvPADTMP_on(sv) (SvFLAGS(sv) |= SVs_PADTMP)
+#define SvPADTMP_off(sv) (SvFLAGS(sv) &= ~SVs_PADTMP)
#define SvPADSTALE_on(sv) S_SvPADSTALE_on(MUTABLE_SV(sv))
#define SvPADSTALE_off(sv) S_SvPADSTALE_off(MUTABLE_SV(sv))