line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#include "EXTERN.h" |
2
|
|
|
|
|
|
|
#include "perl.h" |
3
|
|
|
|
|
|
|
#include "XSUB.h" |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# include "src/types.h" |
6
|
|
|
|
|
|
|
# include "src/Identifiable.h" |
7
|
|
|
|
|
|
|
|
8
|
0
|
|
|
|
|
|
void initialize_identifiable(Identifiable* self){ |
9
|
0
|
|
|
|
|
|
self->id = idpool++; |
10
|
0
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
int get_id(Identifiable* self){ |
13
|
0
|
|
|
|
|
|
return self->id; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
int _type(Identifiable* self){ |
17
|
0
|
|
|
|
|
|
return self->_type; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
int _container(Identifiable* self){ |
21
|
0
|
|
|
|
|
|
return self->_container; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
int _index(Identifiable* self) { |
25
|
0
|
|
|
|
|
|
return self->_index; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
void destroy_identifiable(Identifiable* self) { |
29
|
|
|
|
|
|
|
//Safefree(self); |
30
|
0
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
MODULE = Bio::PhyloXS::Identifiable PACKAGE = Bio::PhyloXS::Identifiable |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
PROTOTYPES: DISABLE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
void |
37
|
|
|
|
|
|
|
initialize_identifiable (self) |
38
|
|
|
|
|
|
|
Identifiable * self |
39
|
|
|
|
|
|
|
PREINIT: |
40
|
|
|
|
|
|
|
I32* temp; |
41
|
|
|
|
|
|
|
PPCODE: |
42
|
0
|
|
|
|
|
|
temp = PL_markstack_ptr++; |
43
|
0
|
|
|
|
|
|
initialize_identifiable(self); |
44
|
0
|
0
|
|
|
|
|
if (PL_markstack_ptr != temp) { |
45
|
|
|
|
|
|
|
/* truly void, because dXSARGS not invoked */ |
46
|
0
|
|
|
|
|
|
PL_markstack_ptr = temp; |
47
|
0
|
|
|
|
|
|
XSRETURN_EMPTY; /* return empty stack */ |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
/* must have used dXSARGS; list context implied */ |
50
|
0
|
|
|
|
|
|
return; /* assume stack size is correct */ |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
int |
53
|
|
|
|
|
|
|
get_id (self) |
54
|
|
|
|
|
|
|
Identifiable * self |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
int |
57
|
|
|
|
|
|
|
_type (self) |
58
|
|
|
|
|
|
|
Identifiable * self |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
int |
61
|
|
|
|
|
|
|
_container (self) |
62
|
|
|
|
|
|
|
Identifiable * self |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
int |
65
|
|
|
|
|
|
|
_index (self) |
66
|
|
|
|
|
|
|
Identifiable * self |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
void |
69
|
|
|
|
|
|
|
destroy_identifiable (self) |
70
|
|
|
|
|
|
|
Identifiable * self |
71
|
|
|
|
|
|
|
PREINIT: |
72
|
|
|
|
|
|
|
I32* temp; |
73
|
|
|
|
|
|
|
PPCODE: |
74
|
0
|
|
|
|
|
|
temp = PL_markstack_ptr++; |
75
|
0
|
|
|
|
|
|
destroy_identifiable(self); |
76
|
0
|
0
|
|
|
|
|
if (PL_markstack_ptr != temp) { |
77
|
|
|
|
|
|
|
/* truly void, because dXSARGS not invoked */ |
78
|
0
|
|
|
|
|
|
PL_markstack_ptr = temp; |
79
|
0
|
|
|
|
|
|
XSRETURN_EMPTY; /* return empty stack */ |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
/* must have used dXSARGS; list context implied */ |
82
|
0
|
|
|
|
|
|
return; /* assume stack size is correct */ |
83
|
|
|
|
|
|
|
|