X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=minimod.pl;h=18b9c0748cf7536bce9574dd920b64c0c0342459;hb=65575be5af9681bf691b8b72b0e5b7f432a867bf;hp=b9b70715b20ed8cdb61442baea5a2b7240c44518;hpb=222dd4a00bed84c0b275ad03ff7126aff93a9e22;p=p5sagit%2Fp5-mst-13.2.git diff --git a/minimod.pl b/minimod.pl index b9b7071..18b9c07 100644 --- a/minimod.pl +++ b/minimod.pl @@ -40,7 +40,7 @@ $tail=<<'EOF!TAIL'; END while () { - print; + print unless /dXSUB_SYS/; } close MINI; @@ -59,13 +59,15 @@ sub writemain{ my($mname, $cname); ($mname = $pname) =~ s!/!::!g; ($cname = $pname) =~ s!/!__!g; - print "EXTERN_C void boot_${cname} _((CV* cv));\n"; + print "EXTERN_C void boot_${cname} (pTHX_ CV* cv);\n"; } my ($tail1,$tail2) = ( $tail =~ /\A(.*\n)(\s*\}.*)\Z/s ); print $tail1; - print " char *file = __FILE__;\n"; + print "\tchar *file = __FILE__;\n"; + print "\tdXSUB_SYS;\n" if $] > 5.002; + foreach $_ (@exts){ my($pname) = canon('/', $_); my($mname, $cname, $ccode);