summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorDoug MacEachern <dougm@covalent.net>2001-02-18 06:49:33 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2001-02-19 00:23:41 +0000
commit4030fe4ad6ddcf55e0341ef163ebb1419014d565 (patch)
treeba61b1f08997a95e92a0dcd5a3977822918cc676 /pod
parentb8c8cfe2143ccc131c4ba2522f7e9a4aef4adb7a (diff)
downloadperl-4030fe4ad6ddcf55e0341ef163ebb1419014d565.tar.gz
[patch] add sv_setref_uv
Message-ID: <Pine.LNX.4.21.0102181448290.10021-100000@mako.covalent.net> p4raw-id: //depot/perl@8840
Diffstat (limited to 'pod')
-rw-r--r--pod/perlapi.pod27
-rw-r--r--pod/perlguts.pod3
2 files changed, 22 insertions, 8 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod
index ef3a260ae8..7b6ad4a621 100644
--- a/pod/perlapi.pod
+++ b/pod/perlapi.pod
@@ -2368,19 +2368,19 @@ false, defined or undefined. Does not handle 'get' magic.
=for hackers
Found in file sv.h
-=item svtype
+=item SvTYPE
-An enum of flags for Perl types. These are found in the file B<sv.h>
-in the C<svtype> enum. Test these flags with the C<SvTYPE> macro.
+Returns the type of the SV. See C<svtype>.
+
+ svtype SvTYPE(SV* sv)
=for hackers
Found in file sv.h
-=item SvTYPE
-
-Returns the type of the SV. See C<svtype>.
+=item svtype
- svtype SvTYPE(SV* sv)
+An enum of flags for Perl types. These are found in the file B<sv.h>
+in the C<svtype> enum. Test these flags with the C<SvTYPE> macro.
=for hackers
Found in file sv.h
@@ -3011,6 +3011,19 @@ Note that C<sv_setref_pv> copies the pointer while this copies the string.
=for hackers
Found in file sv.c
+=item sv_setref_uv
+
+Copies an unsigned integer into a new SV, optionally blessing the SV. The C<rv>
+argument will be upgraded to an RV. That RV will be modified to point to
+the new SV. The C<classname> argument indicates the package for the
+blessing. Set C<classname> to C<Nullch> to avoid the blessing. The new SV
+will be returned and will have a reference count of 1.
+
+ SV* sv_setref_uv(SV* rv, const char* classname, UV uv)
+
+=for hackers
+Found in file sv.c
+
=item sv_setsv
Copies the contents of the source SV C<ssv> into the destination SV C<dsv>.
diff --git a/pod/perlguts.pod b/pod/perlguts.pod
index 54d071596a..557dbaf306 100644
--- a/pod/perlguts.pod
+++ b/pod/perlguts.pod
@@ -530,10 +530,11 @@ class. SV is returned.
SV* newSVrv(SV* rv, const char* classname);
-Copies integer or double into an SV whose reference is C<rv>. SV is blessed
+Copies integer, unsigned integer or double into an SV whose reference is C<rv>. SV is blessed
if C<classname> is non-null.
SV* sv_setref_iv(SV* rv, const char* classname, IV iv);
+ SV* sv_setref_uv(SV* rv, const char* classname, UV uv);
SV* sv_setref_nv(SV* rv, const char* classname, NV iv);
Copies the pointer value (I<the address, not the string!>) into an SV whose