#include "EXTERN.h" #include "perl.h" #include "XSUB.h" typedef IV MyType; typedef IV MyType2; typedef IV MyType3; typedef IV MyType4; typedef IV MyType5; typedef IV MyType6; =for testing This parts are ignored. =cut /* Old perls (pre 5.8.9 or so) did not have PERL_UNUSED_ARG in XSUB.h. * This is normally covered by ppport.h. */ #ifndef PERL_UNUSED_ARG # if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */ # include # define PERL_UNUSED_ARG(x) NOTE(ARGUNUSED(x)) # else # define PERL_UNUSED_ARG(x) ((void)x) # endif #endif #ifndef PERL_UNUSED_VAR # define PERL_UNUSED_VAR(x) ((void)x) #endif STATIC void outlist(int* a, int* b){ *a = 'a'; *b = 'b'; } STATIC int len(const char* const s, int const l){ PERL_UNUSED_ARG(s); return l; } MODULE = XSMore PACKAGE = XSMore =for testing This parts are also ignored. =cut PROTOTYPES: ENABLE VERSIONCHECK: DISABLE REQUIRE: 2.20 SCOPE: DISABLE FALLBACK: TRUE BOOT: sv_setiv(get_sv("XSMore::boot_ok", TRUE), 100); TYPEMAP: <