line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package List::Util::XS; |
2
|
15
|
|
|
15
|
|
157281
|
use strict; |
|
15
|
|
|
|
|
23
|
|
|
15
|
|
|
|
|
348
|
|
3
|
15
|
|
|
15
|
|
58
|
use warnings; |
|
15
|
|
|
|
|
15
|
|
|
15
|
|
|
|
|
2263
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = "1.46_01"; # FIXUP |
6
|
|
|
|
|
|
|
our $XS_VERSION = $VERSION; |
7
|
|
|
|
|
|
|
$VERSION = eval $VERSION; # FIXUP |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
require Exporter; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
12
|
|
|
|
|
|
|
our @EXPORT_OK = qw( |
13
|
|
|
|
|
|
|
all any first min max minstr maxstr none notall product reduce sum sum0 shuffle uniq uniqnum uniqstr |
14
|
|
|
|
|
|
|
pairs unpairs pairkeys pairvalues pairmap pairgrep pairfirst |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
require XSLoader; |
18
|
|
|
|
|
|
|
XSLoader::load(__PACKAGE__, $XS_VERSION); |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
9678
|
sub List::Util::XS::_Pair::key { $_[0][0] } |
21
|
1
|
|
|
1
|
|
4
|
sub List::Util::XS::_Pair::value { $_[0][1] } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub import |
24
|
|
|
|
|
|
|
{ |
25
|
16
|
|
|
16
|
|
76
|
my $pkg = caller; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
# (RT88848) Touch the caller's $a and $b, to avoid the warning of |
28
|
|
|
|
|
|
|
# Name "main::a" used only once: possible typo" warning |
29
|
15
|
|
|
15
|
|
68
|
no strict 'refs'; |
|
15
|
|
|
|
|
21
|
|
|
15
|
|
|
|
|
1271
|
|
30
|
16
|
|
|
|
|
15
|
${"${pkg}::a"} = ${"${pkg}::a"}; |
|
16
|
|
|
|
|
19
|
|
|
16
|
|
|
|
|
59
|
|
31
|
16
|
|
|
|
|
16
|
${"${pkg}::b"} = ${"${pkg}::b"}; |
|
16
|
|
|
|
|
22
|
|
|
16
|
|
|
|
|
34
|
|
32
|
|
|
|
|
|
|
|
33
|
16
|
|
|
|
|
6415
|
goto &Exporter::import; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
__END__ |