summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2015-10-29 15:05:59 +1100
committerTony Cook <tony@develop-help.com>2015-11-09 11:53:15 +1100
commitb1744e1301fac4040f4a35d41cb9ff1e8531edc3 (patch)
treee43bc0a2a094a02454dcc53c2317234cf8375342 /sv.c
parent636efde423cb618062f58fe3313feb544ebe3882 (diff)
downloadperl-b1744e1301fac4040f4a35d41cb9ff1e8531edc3.tar.gz
make sv_ref() part of the API
The existing sv_reftype() returns the class of a blessed SV only as a const char *, so we can't tell if it's UTF8 or not. This probably should have been API from the beginning.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 6fdbce78a6..5366ae07f6 100644
--- a/sv.c
+++ b/sv.c
@@ -9991,6 +9991,12 @@ Perl_sv_reftype(pTHX_ const SV *const sv, const int ob)
Returns a SV describing what the SV passed in is a reference to.
+dst can be a SV to be set to the description or NULL, in which case a
+mortal SV is returned.
+
+If ob is true and the SV is blessed, the description is the class
+name, otherwise it is the type of the SV, "SCALAR", "ARRAY" etc.
+
=cut
*/