X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xs-src%2FMouseTypeConstraints.xs;h=6695c71d9fff860346c9f2a3fdeef9dd5de00e1f;hb=31a596ed4b2890a593de4ecf9197f1452406e04b;hp=f22a869db60660d4d6798d4f2b2718f6ecea3c78;hpb=568f88f209d3a7d30ed799f3434dd865842d1aa3;p=gitmo%2FMouse.git diff --git a/xs-src/MouseTypeConstraints.xs b/xs-src/MouseTypeConstraints.xs index f22a869..6695c71 100644 --- a/xs-src/MouseTypeConstraints.xs +++ b/xs-src/MouseTypeConstraints.xs @@ -12,6 +12,9 @@ typedef int (*check_fptr_t)(pTHX_ SV* const data, SV* const sv); +static +XSPROTO(XS_Mouse_constraint_check); + /* NOTE: mouse_tc_check() handles GETMAGIC */ @@ -544,8 +547,8 @@ mouse_generate_can_predicate_for(pTHX_ SV* const methods, const char* const pred return mouse_tc_generate(aTHX_ predicate_name, (check_fptr_t)mouse_can_methods, (SV*)param); } - -XS(XS_Mouse_constraint_check) { +static +XSPROTO(XS_Mouse_constraint_check) { dVAR; dXSARGS; MAGIC* const mg = (MAGIC*)XSANY.any_ptr; @@ -561,8 +564,8 @@ XS(XS_Mouse_constraint_check) { XSRETURN(1); } -XS(XS_Mouse_TypeConstraint_fallback); /* -Wmissing-prototypes */ -XS(XS_Mouse_TypeConstraint_fallback) { +static +XSPROTO(XS_Mouse_TypeConstraint_fallback) { dXSARGS; PERL_UNUSED_VAR(cv); PERL_UNUSED_VAR(items); @@ -801,7 +804,7 @@ CODE: } bool -check(SV* self, SV* sv) +check(SV* self, SV* sv, ...) CODE: { SV* const check = get_slots(self, "compiled_type_constraint");