summaryrefslogtreecommitdiff
path: root/embed.h
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 /embed.h
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 'embed.h')
-rw-r--r--embed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index 272ecf587a..b41833b393 100644
--- a/embed.h
+++ b/embed.h
@@ -644,6 +644,7 @@
#define sv_pvutf8n(a,b) Perl_sv_pvutf8n(aTHX_ a,b)
#define sv_pvutf8n_force(a,b) Perl_sv_pvutf8n_force(aTHX_ a,b)
#define sv_recode_to_utf8(a,b) Perl_sv_recode_to_utf8(aTHX_ a,b)
+#define sv_ref(a,b,c) Perl_sv_ref(aTHX_ a,b,c)
#define sv_reftype(a,b) Perl_sv_reftype(aTHX_ a,b)
#define sv_replace(a,b) Perl_sv_replace(aTHX_ a,b)
#define sv_report_used() Perl_sv_report_used(aTHX)
@@ -1323,7 +1324,6 @@
#define sv_free_arenas() Perl_sv_free_arenas(aTHX)
#define sv_len_utf8_nomg(a) Perl_sv_len_utf8_nomg(aTHX_ a)
#define sv_mortalcopy_flags(a,b) Perl_sv_mortalcopy_flags(aTHX_ a,b)
-#define sv_ref(a,b,c) Perl_sv_ref(aTHX_ a,b,c)
#define sv_resetpvn(a,b,c) Perl_sv_resetpvn(aTHX_ a,b,c)
#define sv_sethek(a,b) Perl_sv_sethek(aTHX_ a,b)
#ifndef PERL_IMPLICIT_CONTEXT