line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FFI::Build::PluginData; |
2
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
223305
|
use strict; |
|
14
|
|
|
|
|
38
|
|
|
14
|
|
|
|
|
418
|
|
4
|
14
|
|
|
14
|
|
80
|
use warnings; |
|
14
|
|
|
|
|
33
|
|
|
14
|
|
|
|
|
399
|
|
5
|
14
|
|
|
14
|
|
479
|
use parent qw( Exporter ); |
|
14
|
|
|
|
|
316
|
|
|
14
|
|
|
|
|
92
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our @EXPORT_OK = qw( plugin_data ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# ABSTRACT: Platform and local customizations of FFI::Build |
10
|
|
|
|
|
|
|
our $VERSION = '2.06_01'; # TRIAL VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub plugin_data |
14
|
|
|
|
|
|
|
{ |
15
|
4
|
|
|
4
|
0
|
8386
|
my($self) = @_; |
16
|
4
|
|
|
|
|
10
|
my $caller = caller; |
17
|
4
|
100
|
|
|
|
20
|
if($caller =~ /^FFI::Build::Plugin::(.*)$/) |
18
|
|
|
|
|
|
|
{ |
19
|
3
|
|
100
|
|
|
25
|
return $self->{plugin_data}->{$1} ||= {}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
else |
22
|
|
|
|
|
|
|
{ |
23
|
1
|
|
|
|
|
5
|
require Carp; |
24
|
1
|
|
|
|
|
214
|
Carp::croak("plugin_data must be called by a plugin"); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |