This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
diag.t: Don’t skip lines starting with spaces
[perl5.git] / makedef.pl
index 1a44d1b..95b4d66 100644 (file)
@@ -40,6 +40,8 @@ my %ARGS = (CCTYPE => 'MSVC', TARG_DIR => '');
 
 my %define;
 
+my $fold;
+
 sub process_cc_flags {
     foreach (map {split /\s+/, $_} @_) {
        $define{$1} = $2 // 1 if /^-D(\w+)(?:=(.+))?/;
@@ -52,6 +54,8 @@ while (@ARGV) {
        process_cc_flags($1);
     } elsif ($flag =~ /^(CCTYPE|FILETYPE|PLATFORM|TARG_DIR)=(.+)$/) {
        $ARGS{$1} = $2;
+    } elsif ($flag eq '--sort-fold') {
+       ++$fold;
     }
 }
 
@@ -196,6 +200,9 @@ if ($ARGS{PLATFORM} ne 'os2') {
                         );
     if ($ARGS{PLATFORM} eq 'vms') {
        ++$skip{PL_statusvalue_posix};
+        # This is a wrapper if we have symlink, not a replacement
+        # if we don't.
+        ++$skip{Perl_my_symlink} unless $Config{d_symlink};
     } else {
        ++$skip{PL_statusvalue_vms};
        if ($ARGS{PLATFORM} ne 'aix') {
@@ -240,7 +247,6 @@ unless ($define{'DEBUGGING'}) {
                    Perl_pad_sv
                    Perl_pad_setsv
                    Perl_hv_assert
-                   PL_block_type
                    PL_watchaddr
                    PL_watchok
                    PL_watch_pvx
@@ -340,6 +346,7 @@ unless ($define{'USE_ITHREADS'}) {
 
 unless ($define{'USE_ITHREADS'}) {
     ++$skip{$_} foreach qw(
+                   PL_check_mutex
                    PL_op_mutex
                    PL_regex_pad
                    PL_regex_padav
@@ -347,6 +354,10 @@ unless ($define{'USE_ITHREADS'}) {
                    PL_hints_mutex
                    PL_my_ctx_mutex
                    PL_perlio_mutex
+                   PL_stashpad
+                   PL_stashpadix
+                   PL_stashpadmax
+                   Perl_alloccopstash
                    Perl_clone_params_del
                    Perl_clone_params_new
                    Perl_parser_dup
@@ -414,10 +425,6 @@ unless ($define{'PERL_DEBUG_READONLY_OPS'}) {
                         );
 }
 
-unless ($define{'THREADS_HAVE_PIDS'}) {
-    ++$skip{PL_ppid};
-}
-
 unless ($define{'PERL_NEED_APPCTX'}) {
     ++$skip{PL_appctx};
 }
@@ -548,6 +555,7 @@ my @layer_syms = qw(
                    PerlIOBase_eof
                    PerlIOBase_error
                    PerlIOBase_fileno
+                   PerlIOBase_open
                    PerlIOBase_noop_fail
                    PerlIOBase_noop_ok
                    PerlIOBase_popped
@@ -1344,7 +1352,8 @@ elsif ($ARGS{PLATFORM} eq 'netware') {
 
 # Then the symbols
 
-foreach my $symbol (sort keys %export) {
+my @symbols = $fold ? sort {lc $a cmp lc $b} keys %export : sort keys %export;
+foreach my $symbol (@symbols) {
     if ($ARGS{PLATFORM} =~ /^win(?:32|ce)$/) {
        print "\t$symbol\n";
     }