Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit c402e0c

Browse files
committed
Devel-PPPort: fix strict hashpairs
1 parent 917d158 commit c402e0c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cpan/Devel-PPPort/parts/inc/ppphbin

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
=implementation
1515

16-
use strict;
16+
use strict qw(refs vars subs);
1717

1818
# Disable broken TRIE-optimization
1919
BEGIN { eval '${^RE_TRIE_MAXBUF} = -1' if $] >= 5.009004 && $] <= 5.009005 }
@@ -259,8 +259,10 @@ else {
259259

260260
if (!@ARGV || $opt{filter}) {
261261
my(@in, @out);
262-
my %xsc = map { /(.*)\.xs$/ ? ("$1.c" => 1, "$1.cc" => 1) : () } @files;
262+
my %xsc = map { /(.*)\.xs$/ && ("$1.c" => 1) } @files;
263+
#warn "\@files=",@files,"\%xsc=",join ",",keys %xsc;
263264
for (@files) {
265+
if (/^(.*)\.xs$/) { $xsc{"$1.cc"} = 1; }
264266
my $out = exists $xsc{$_} || /\b\Q$ppport\E$/i || !/($srcext)$/i;
265267
push @{ $out ? \@out : \@in }, $_;
266268
}

cpan/Devel-PPPort/t/testutil.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
else {
4343
print "not ok $__ntest\n"
4444
}
45+
$ok
4546
}
4647
}
4748

0 commit comments

Comments
 (0)