summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-10 16:26:43 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-10 16:26:43 +0000
commit5902b6a9a2a1e49c54aefa132afca1e54238aa2b (patch)
treeabb6a9001566ba72f7ef97e4528d6b5df9c3913e /sv.h
parent729c079f503f2192381f3dac342bae6ced6ca379 (diff)
downloadperl-5902b6a9a2a1e49c54aefa132afca1e54238aa2b.tar.gz
Add SvGROW_mutable
p4raw-id: //depot/perl@24796
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index a22fb8deff..4f35cd4222 100644
--- a/sv.h
+++ b/sv.h
@@ -1525,6 +1525,8 @@ Returns a pointer to the character buffer.
#define isGV(sv) (SvTYPE(sv) == SVt_PVGV)
#define SvGROW(sv,len) (SvLEN(sv) < (len) ? sv_grow(sv,len) : SvPVX(sv))
+#define SvGROW_mutable(sv,len) \
+ (SvLEN(sv) < (len) ? sv_grow(sv,len) : SvPVX_mutable(sv))
#define Sv_Grow sv_grow
#define CLONEf_COPY_STACKS 1