From: Nicholas Clark Date: Thu, 27 Mar 2003 22:37:35 +0000 (+0000) Subject: [DOCPATCH] Re: [PATCH] Re: [perl #21614] 5.8.0 Unbalanced string table refcount X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=19dbb8f173af2c7e80a0837871d15e631aacc74c;p=p5sagit%2Fp5-mst-13.2.git [DOCPATCH] Re: [PATCH] Re: [perl #21614] 5.8.0 Unbalanced string table refcount Message-ID: <20030327223735.GD277@Bagpuss.unfortu.net> p4raw-id: //depot/perl@19079 --- diff --git a/pod/perlapi.pod b/pod/perlapi.pod index d31ec00..f646778 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -2741,6 +2741,27 @@ Returns a boolean indicating whether the SV contains an unsigned integer. =for hackers Found in file sv.h +=item SvIsCOW + +Returns a boolean indicating whether the SV is Copy-On-Write. (either shared +hash key scalars, or full Copy On Write scalars if 5.9.0 is configured for +COW) + + bool SvIsCOW(SV* sv) + +=for hackers +Found in file sv.h + +=item SvIsCOW_shared_hash + +Returns a boolean indicating whether the SV is Copy-On-Write shared hash key +scalar. + + bool SvIsCOW_shared_hash(SV* sv) + +=for hackers +Found in file sv.h + =item SvIV Coerces the given SV to an integer and returns it. See C for a @@ -2992,7 +3013,6 @@ Like C, but converts sv to byte representation first if necessary. Guarantees to evaluate sv only once; use the more efficient C otherwise. - char* SvPVbytex(SV* sv, STRLEN len) =for hackers diff --git a/sv.h b/sv.h index 18ad297..8af8cbb 100644 --- a/sv.h +++ b/sv.h @@ -920,6 +920,14 @@ Like C, but converts sv to byte representation first if necessary. Guarantees to evaluate sv only once; use the more efficient C otherwise. +=for apidoc Am|bool|SvIsCOW|SV* sv +Returns a boolean indicating whether the SV is Copy-On-Write. (either shared +hash key scalars, or full Copy On Write scalars if 5.9.0 is configured for +COW) + +=for apidoc Am|bool|SvIsCOW_shared_hash|SV* sv +Returns a boolean indicating whether the SV is Copy-On-Write shared hash key +scalar. =cut */