summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-16 11:35:38 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-16 11:35:38 +0000
commitc1c21316ed394affd6841f00fb82bc62eb5fd0a5 (patch)
treee6add2e39e912a1f475f3b28e094f78bb1f0e125 /sv.h
parent47518d95dc53ff6c3eab1e57e355d65c518ebfa5 (diff)
downloadperl-c1c21316ed394affd6841f00fb82bc62eb5fd0a5.tar.gz
Provide a new flag for sv_usepvn_flags, SV_HAS_TRAILING_NUL, which
signals that the buffer passed in is already well-formed for use as SvPVX (i.e. it is followed by a trailing NUL), and hence the realloc() to add a NUL can be skipped. p4raw-id: //depot/perl@27841
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index e887497163..b6d4b14447 100644
--- a/sv.h
+++ b/sv.h
@@ -1637,6 +1637,7 @@ Like C<sv_catsv> but doesn't process magic.
#define SV_CONST_RETURN 32
#define SV_MUTABLE_RETURN 64
#define SV_SMAGIC 128
+#define SV_HAS_TRAILING_NUL 256
#define sv_unref(sv) sv_unref_flags(sv, 0)
#define sv_force_normal(sv) sv_force_normal_flags(sv, 0)