This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
boot_Win32CORE needs to be XS_EXTERNAL() following commit ab1478f7146843f7.
[perl5.git] / makedef.pl
index e7d72e3..a4b5ced 100644 (file)
@@ -177,7 +177,7 @@ sub readvar {
     while (<$vars>) {
        # All symbols have a Perl_ prefix because that's what embed.h sticks
        # in front of them.  The A?I?S?C? is strictly speaking wrong.
-       next unless /\bPERLVAR(A?I?S?C?)\(([IGT])(\w+)/;
+       next unless /\bPERLVAR(A?I?S?C?)\(([IGT]),\s*(\w+)/;
 
        my $var = "PL_$3";
        my $symbol = $proc ? &$proc($1,$2,$3) : $var;
@@ -487,6 +487,11 @@ unless ($define{HAS_MMAP}) {
 
 if ($define{HAS_SIGACTION}) {
     ++$skip{PL_sig_trapped};
+
+    if ($ARGS{PLATFORM} eq 'vms') {
+        # FAKE_PERSISTENT_SIGNAL_HANDLERS defined as !defined(HAS_SIGACTION)
+        ++$skip{PL_sig_ignoring};
+    }
 }
 
 unless ($define{USE_LOCALE_COLLATE}) {
@@ -1276,7 +1281,8 @@ if ($ARGS{PLATFORM} eq 'os2') {
 # Start with platform specific headers:
 
 if ($ARGS{PLATFORM} =~ /^win(?:32|ce)$/) {
-    (my $dll = ($define{PERL_DLL} || "perl515")) =~ s/\.dll$//i;
+    my $dll = $define{PERL_DLL} ? $define{PERL_DLL} =~ s/\.dll$//ir
+       : "perl$Config{api_revision}$Config{api_version}";
     print "LIBRARY $dll\n";
     # The DESCRIPTION module definition file statement is not supported
     # by VC7 onwards.
@@ -1314,7 +1320,7 @@ elsif ($ARGS{PLATFORM} eq 'aix') {
 }
 elsif ($ARGS{PLATFORM} eq 'netware') {
        if ($ARGS{FILETYPE} eq 'def') {
-       print "LIBRARY perl515\n";
+       print "LIBRARY perl$Config{api_revision}$Config{api_version}\n";
        print "DESCRIPTION 'Perl interpreter for NetWare'\n";
        print "EXPORTS\n";
        }