line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::Hunspell::FFI::Lib; |
2
|
|
|
|
|
|
|
|
3
|
10
|
|
|
10
|
|
112436
|
use strict; |
|
10
|
|
|
|
|
10
|
|
|
10
|
|
|
|
|
854
|
|
4
|
10
|
|
|
10
|
|
31
|
use warnings; |
|
10
|
|
|
|
|
1423
|
|
|
10
|
|
|
|
|
3200
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.02'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _libs |
9
|
|
|
|
|
|
|
{ |
10
|
10
|
|
|
10
|
|
15
|
my @libs = eval { |
11
|
10
|
|
|
|
|
3309
|
require Alien::Hunspell; |
12
|
10
|
|
|
|
|
265015
|
Alien::Hunspell->dynamic_libs; |
13
|
|
|
|
|
|
|
}; |
14
|
|
|
|
|
|
|
|
15
|
10
|
50
|
|
|
|
39350
|
@libs = eval { |
16
|
0
|
|
|
|
|
0
|
require FFI::CheckLib; |
17
|
|
|
|
|
|
|
FFI::CheckLib::find_lib( |
18
|
|
|
|
|
|
|
lib => "*", |
19
|
0
|
|
|
0
|
|
0
|
verify => sub { $_[0] =~ /hunspell/ }, |
20
|
0
|
|
|
|
|
0
|
symbol => "Hunspell_create" |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
} unless(@libs); |
23
|
|
|
|
|
|
|
|
24
|
10
|
|
|
|
|
42
|
@libs; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |