summaryrefslogtreecommitdiff
path: root/pod/perlapi.pod
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-06-02 08:41:35 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-03 07:43:52 +0000
commit3f7c398ef4badd9c6ec5b40ea29141484c160f63 (patch)
tree426f2d67d33bbe05a145c2c4f767473c57e6f218 /pod/perlapi.pod
parente75702e9a3cd2d1cb16d792e7bd1988fe77177c6 (diff)
downloadperl-3f7c398ef4badd9c6ec5b40ea29141484c160f63.tar.gz
SvPVX_const() - patch #4
Message-ID: <20050602184135.GA13682@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24682
Diffstat (limited to 'pod/perlapi.pod')
-rw-r--r--pod/perlapi.pod6
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod
index e00fe351ee..5856a75ca1 100644
--- a/pod/perlapi.pod
+++ b/pod/perlapi.pod
@@ -2997,12 +2997,12 @@ Found in file sv.c
=item newSVpvn_share
-Creates a new SV with its SvPVX pointing to a shared string in the string
+Creates a new SV with its SvPVX_const pointing to a shared string in the string
table. If the string does not already exist in the table, it is created
first. Turns on READONLY and FAKE. The string's hash is stored in the UV
slot of the SV; if the C<hash> parameter is non-zero, that value is used;
otherwise the hash is computed. The idea here is that as the string table
-is used for shared hash keys these strings will have SvPVX == HeKEY and
+is used for shared hash keys these strings will have SvPVX_const == HeKEY and
hash lookup will avoid string compare.
SV* newSVpvn_share(const char* s, I32 len, U32 hash)
@@ -4189,7 +4189,7 @@ Efficient removal of characters from the beginning of the string buffer.
SvPOK(sv) must be true and the C<ptr> must be a pointer to somewhere inside
the string buffer. The C<ptr> becomes the first character of the adjusted
string. Uses the "OOK hack".
-Beware: after this function returns, C<ptr> and SvPVX(sv) may no longer
+Beware: after this function returns, C<ptr> and SvPVX_const(sv) may no longer
refer to the same chunk of data.
void sv_chop(SV* sv, const char* ptr)