summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-04-19 20:55:24 +0000
committerNicholas Clark <nick@ccl4.org>2005-04-19 20:55:24 +0000
commit7ae8ee9e2dc5b5e2978d561e17a946dd34408c4f (patch)
tree21ee723db632600965757bfd0b4a069a152e5b06 /sv.h
parent62703e7218aceb3f5d30f70a2307dd02e5eb8c63 (diff)
downloadperl-7ae8ee9e2dc5b5e2978d561e17a946dd34408c4f.tar.gz
Restore SvEND_set
p4raw-id: //depot/perl@24253
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index d1cb725241..940355e977 100644
--- a/sv.h
+++ b/sv.h
@@ -818,6 +818,9 @@ in gv.h: */
#define SvLEN_set(sv, val) \
STMT_START { assert(SvTYPE(sv) >= SVt_PV); \
(((XPV*) SvANY(sv))->xpv_len = (val)); } STMT_END
+#define SvEND_set(sv, val) \
+ STMT_START { assert(SvTYPE(sv) >= SVt_PV); \
+ (SvCUR(sv) = (val) - SvPVX(sv)); } STMT_END
#define SvPV_renew(sv,n) \
STMT_START { SvLEN_set(sv, n); \