diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2007-08-29 17:04:53 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-08-30 13:49:14 +0000 |
commit | af50234ae61938119019b4674c00e0557996a1e2 (patch) | |
tree | 1fbf396647db987f0166de4ee32bf04f3c6c5c25 /pod/perlapi.pod | |
parent | b762913437487ec851f720118a399791f2591d88 (diff) | |
download | perl-af50234ae61938119019b4674c00e0557996a1e2.tar.gz |
misc blead stuff
Message-ID: <46D617B5.3000002@iki.fi>
p4raw-id: //depot/perl@31765
Diffstat (limited to 'pod/perlapi.pod')
-rw-r--r-- | pod/perlapi.pod | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod index 702cd50197..c8ac82746d 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -5167,11 +5167,11 @@ X<newSVpvn_share> 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_const == HeKEY and -hash lookup will avoid string compare. +first. Turns on READONLY and FAKE. If the C<hash> parameter is non-zero, that +value is used; otherwise the hash is computed. The string's hash can be later +be retrieved from the SV with the C<SvSHARED_HASH()> macro. The idea here is +that as the string table 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) |