line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Alien::LibMagic; |
2
|
|
|
|
|
|
|
$Alien::LibMagic::VERSION = '0.002'; |
3
|
2
|
|
|
2
|
|
1122
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
50
|
|
4
|
2
|
|
|
2
|
|
6
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
53
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
868
|
use parent 'Alien::Base'; |
|
2
|
|
|
|
|
551
|
|
|
2
|
|
|
|
|
10
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub Inline { |
9
|
0
|
0
|
|
0
|
0
|
|
return unless $_[-1] eq 'C'; # Inline's error message is good |
10
|
0
|
|
|
|
|
|
my $self = __PACKAGE__->new; |
11
|
|
|
|
|
|
|
+{ |
12
|
0
|
|
|
|
|
|
LIBS => $self->libs, |
13
|
|
|
|
|
|
|
INC => $self->cflags, |
14
|
|
|
|
|
|
|
AUTO_INCLUDE => '#include "magic.h"', |
15
|
|
|
|
|
|
|
}; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=pod |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=encoding UTF-8 |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Alien::LibMagic - Alien package for the libmagic library |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 VERSION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
version 0.002 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 Inline support |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
This module supports L. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SEE ALSO |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
L, L, L |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 AUTHOR |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Zakariyya Mughal |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Zakariyya Mughal. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
49
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |