line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FFI::Build::PluginData; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
232083
|
use strict; |
|
14
|
|
|
|
|
40
|
|
|
14
|
|
|
|
|
425
|
|
4
|
14
|
|
|
14
|
|
77
|
use warnings; |
|
14
|
|
|
|
|
47
|
|
|
14
|
|
|
|
|
413
|
|
5
|
14
|
|
|
14
|
|
476
|
use parent qw( Exporter ); |
|
14
|
|
|
|
|
338
|
|
|
14
|
|
|
|
|
84
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our @EXPORT_OK = qw( plugin_data ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: Platform and local customizations of FFI::Build |
10
|
|
|
|
|
|
|
our $VERSION = '2.08'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub plugin_data |
14
|
|
|
|
|
|
|
{ |
15
|
4
|
|
|
4
|
0
|
7374
|
my($self) = @_; |
16
|
4
|
|
|
|
|
12
|
my $caller = caller; |
17
|
4
|
100
|
|
|
|
20
|
if($caller =~ /^FFI::Build::Plugin::(.*)$/) |
18
|
|
|
|
|
|
|
{ |
19
|
3
|
|
100
|
|
|
24
|
return $self->{plugin_data}->{$1} ||= {}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
else |
22
|
|
|
|
|
|
|
{ |
23
|
1
|
|
|
|
|
6
|
require Carp; |
24
|
1
|
|
|
|
|
171
|
Carp::croak("plugin_data must be called by a plugin"); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |