line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FFI::Platypus::Lang::Raw; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
219456
|
use strict; |
|
8
|
|
|
|
|
24
|
|
|
8
|
|
|
|
|
236
|
|
4
|
8
|
|
|
8
|
|
53
|
use warnings; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
233
|
|
5
|
8
|
|
|
8
|
|
41
|
use base qw( FFI::Platypus::Lang::C ); |
|
8
|
|
|
|
|
19
|
|
|
8
|
|
|
|
|
2455
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Types for use with FFI::Platypus::Legacy::Raw |
8
|
|
|
|
|
|
|
our $VERSION = '0.05'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my %types; |
12
|
|
|
|
|
|
|
sub native_type_map |
13
|
|
|
|
|
|
|
{ |
14
|
1230
|
|
|
1230
|
1
|
335733
|
my $class = shift; |
15
|
1230
|
100
|
|
|
|
2295
|
unless(%types) |
16
|
|
|
|
|
|
|
{ |
17
|
|
|
|
|
|
|
%types = ( |
18
|
8
|
|
|
|
|
15
|
%{ $class->SUPER::native_type_map }, |
|
8
|
|
|
|
|
58
|
|
19
|
|
|
|
|
|
|
'v' => 'void', |
20
|
|
|
|
|
|
|
'x' => 'sint64', |
21
|
|
|
|
|
|
|
'X' => 'uint64', |
22
|
|
|
|
|
|
|
'i' => 'sint32', |
23
|
|
|
|
|
|
|
'I' => 'uint32', |
24
|
|
|
|
|
|
|
'z' => 'sint16', |
25
|
|
|
|
|
|
|
'Z' => 'uint16', |
26
|
|
|
|
|
|
|
'c' => 'sint8', |
27
|
|
|
|
|
|
|
'C' => 'uint8', |
28
|
|
|
|
|
|
|
'f' => 'float', |
29
|
|
|
|
|
|
|
'd' => 'double', |
30
|
|
|
|
|
|
|
's' => 'string', |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
} |
33
|
1230
|
|
|
|
|
7645
|
$types{l} = $types{'long'}; |
34
|
1230
|
|
|
|
|
1751
|
$types{L} = $types{'unsigned long'}; |
35
|
1230
|
|
|
|
|
2547
|
\%types; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |