summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-12-27 14:32:59 +0000
committerNicholas Clark <nick@ccl4.org>2008-12-27 21:12:13 +0000
commit31b9005d8ff165a414c5e3493027e1656d7e810f (patch)
treea220586ab1cb200072527680d3bc00f88bbf6bd4 /proto.h
parent553e831a35acc518a30a7514866e0d1440e894ef (diff)
downloadperl-31b9005d8ff165a414c5e3493027e1656d7e810f.tar.gz
Break out the set-the-MRO logic from the XS_mro_set_mro into Perl_mro_set_mro(),
which can be called from C code (such as the guts of extensions).
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 87e1e8632e..1313b31665 100644
--- a/proto.h
+++ b/proto.h
@@ -6577,6 +6577,12 @@ PERL_CALLCONV void Perl_mro_register(pTHX_ const struct mro_alg *mro)
#define PERL_ARGS_ASSERT_MRO_REGISTER \
assert(mro)
+PERL_CALLCONV void Perl_mro_set_mro(pTHX_ struct mro_meta *const meta, SV *const name)
+ __attribute__nonnull__(pTHX_1)
+ __attribute__nonnull__(pTHX_2);
+#define PERL_ARGS_ASSERT_MRO_SET_MRO \
+ assert(meta); assert(name)
+
PERL_CALLCONV struct mro_meta* Perl_mro_meta_init(pTHX_ HV* stash)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_MRO_META_INIT \