summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-09-23 20:11:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-09-23 19:06:31 +0000
commitbb4968450a032ce005616de0476d6d89662526ad (patch)
treea1c93a931706d08a76c8d0a346a3609a850d15ea /sv.h
parent12f8b8018bfcb4b65e8ced6f270de8fb3ab8b984 (diff)
downloadperl-bb4968450a032ce005616de0476d6d89662526ad.tar.gz
Fix to PERL_DEBUG_COW
Message-ID: <20050923181109.GA1350@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@25590
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sv.h b/sv.h
index 77731c4793..1e6c86a4d2 100644
--- a/sv.h
+++ b/sv.h
@@ -887,11 +887,6 @@ in gv.h: */
# define SvLEN(sv) ((XPV*) SvANY(sv))->xpv_len
# define SvEND(sv) ((sv)->sv_u.svu_pv + ((XPV*)SvANY(sv))->xpv_cur)
-/* Given that these two are new, there can't be any existing code using them
- * as LVALUEs */
-#define SvPVX_mutable(sv) (0 + (sv)->sv_u.svu_pv)
-#define SvPVX_const(sv) ((const char*)(0 + (sv)->sv_u.svu_pv))
-
# ifdef DEBUGGING
# define SvMAGIC(sv) (*(assert(SvTYPE(sv) >= SVt_PVMG), &((XPVMG*) SvANY(sv))->xmg_magic))
# define SvSTASH(sv) (*(assert(SvTYPE(sv) >= SVt_PVMG), &((XPVMG*) SvANY(sv))->xmg_stash))
@@ -901,6 +896,11 @@ in gv.h: */
# endif
#endif
+/* Given that these two are new, there can't be any existing code using them
+ * as LVALUEs */
+#define SvPVX_mutable(sv) (0 + (sv)->sv_u.svu_pv)
+#define SvPVX_const(sv) ((const char*)(0 + (sv)->sv_u.svu_pv))
+
#define SvIVXx(sv) SvIVX(sv)
#define SvUVXx(sv) SvUVX(sv)
#define SvNVXx(sv) SvNVX(sv)