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