diff options
author | Tony Cook <tony@develop-help.com> | 2015-10-29 15:05:59 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2015-11-09 11:53:15 +1100 |
commit | b1744e1301fac4040f4a35d41cb9ff1e8531edc3 (patch) | |
tree | e43bc0a2a094a02454dcc53c2317234cf8375342 /sv.c | |
parent | 636efde423cb618062f58fe3313feb544ebe3882 (diff) | |
download | perl-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ |