diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-16 11:35:38 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-16 11:35:38 +0000 |
commit | c1c21316ed394affd6841f00fb82bc62eb5fd0a5 (patch) | |
tree | e6add2e39e912a1f475f3b28e094f78bb1f0e125 /sv.h | |
parent | 47518d95dc53ff6c3eab1e57e355d65c518ebfa5 (diff) | |
download | perl-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |