X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=vms%2Fwritemain.pl;h=1843b3020654244d54da579bd92fcb6ed63d8d59;hb=f53b4005ee9caf0c4bca648dd62abf1d2c96a549;hp=5f1c8bf0d34fee9bd8484099fc90fb7bf7a0ca0b;hpb=07f049cb527099650c0a61148a7ab92f6e3d4396;p=p5sagit%2Fp5-mst-13.2.git diff --git a/vms/writemain.pl b/vms/writemain.pl index 5f1c8bf..1843b30 100644 --- a/vms/writemain.pl +++ b/vms/writemain.pl @@ -5,7 +5,7 @@ # linker options file which causes the bootstrap routines for # these extension to be universal symbols in PerlShr.Exe. # -# Last modified 29-Nov-1994 by Charles Bailey bailey@genetics.upenn.edu +# Last modified 29-Nov-1994 by Charles Bailey bailey@newman.upenn.edu # if (-f 'miniperlmain.c') { $dir = ''; } @@ -34,9 +34,8 @@ if (!$ok) { print OUT <<'EOH'; static void -xs_init() +xs_init(pTHX) { - dXSUB_SYS; EOH if (@ARGV) { @@ -51,8 +50,10 @@ if (@exts) { foreach $ext (@exts) { my($subname) = $ext; $subname =~ s/::/__/g; - print OUT "extern void boot_${subname} _((CV* cv));\n" + print OUT "extern void boot_${subname} (pTHX_ CV* cv);\n" } + # May not actually be a declaration, so put after other declarations + print OUT " dXSUB_SYS;\n"; foreach $ext (@exts) { my($subname) = $ext; $subname =~ s/::/__/g;