summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-09-30 13:42:31 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-10-06 13:01:10 -0700
commitf778bcfda5fdc759036c3f3509c3a1a0f8a59f28 (patch)
treecb5cf274f4ff301b21f3f97e8c867d8b771b3377 /proto.h
parentc682ebef862f40c7b7ed8a6175ecb457b9981787 (diff)
downloadperl-f778bcfda5fdc759036c3f3509c3a1a0f8a59f28.tar.gz
universal.c: sv_does() UTF8 cleanup.
This adds _sv, _pv, and _pvn forms to sv_does, and changes it to use sv_ref() instead of sv_reftype().
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 72e2f4ac5d..7a5fab0d38 100644
--- a/proto.h
+++ b/proto.h
@@ -3856,6 +3856,27 @@ PERL_CALLCONV bool Perl_sv_does(pTHX_ SV* sv, const char *const name)
#define PERL_ARGS_ASSERT_SV_DOES \
assert(sv); assert(name)
+PERL_CALLCONV bool Perl_sv_does_pv(pTHX_ SV* sv, const char *const name, U32 flags)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1)
+ __attribute__nonnull__(pTHX_2);
+#define PERL_ARGS_ASSERT_SV_DOES_PV \
+ assert(sv); assert(name)
+
+PERL_CALLCONV bool Perl_sv_does_pvn(pTHX_ SV* sv, const char *const name, const STRLEN len, U32 flags)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1)
+ __attribute__nonnull__(pTHX_2);
+#define PERL_ARGS_ASSERT_SV_DOES_PVN \
+ assert(sv); assert(name)
+
+PERL_CALLCONV bool Perl_sv_does_sv(pTHX_ SV* sv, SV* namesv, U32 flags)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1)
+ __attribute__nonnull__(pTHX_2);
+#define PERL_ARGS_ASSERT_SV_DOES_SV \
+ assert(sv); assert(namesv)
+
PERL_CALLCONV void Perl_sv_dump(pTHX_ SV* sv)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_SV_DUMP \
@@ -4026,6 +4047,11 @@ PERL_CALLCONV char* Perl_sv_recode_to_utf8(pTHX_ SV* sv, SV *encoding)
#define PERL_ARGS_ASSERT_SV_RECODE_TO_UTF8 \
assert(sv); assert(encoding)
+PERL_CALLCONV SV* Perl_sv_ref(pTHX_ SV *dst, const SV *const sv, const int ob)
+ __attribute__nonnull__(pTHX_2);
+#define PERL_ARGS_ASSERT_SV_REF \
+ assert(sv)
+
PERL_CALLCONV const char* Perl_sv_reftype(pTHX_ const SV *const sv, const int ob)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1);