| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#include "EXTERN.h" |
|
2
|
|
|
|
|
|
|
#include "perl.h" |
|
3
|
|
|
|
|
|
|
#include "XSUB.h" |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
MODULE = Sub::Boolean PACKAGE = Sub::Boolean |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
void truthy (...) |
|
8
|
|
|
|
|
|
|
CODE: |
|
9
|
2
|
|
|
|
|
|
XSRETURN_YES; |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
void falsey (...) |
|
12
|
|
|
|
|
|
|
CODE: |
|
13
|
2
|
|
|
|
|
|
XSRETURN_NO; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
void undef (...) |
|
16
|
|
|
|
|
|
|
CODE: |
|
17
|
1
|
|
|
|
|
|
XSRETURN_UNDEF; |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
void empty (...) |
|
20
|
|
|
|
|
|
|
CODE: |
|
21
|
1
|
|
|
|
|
|
XSRETURN_EMPTY; |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
void make_true (name) |
|
24
|
|
|
|
|
|
|
char *name |
|
25
|
|
|
|
|
|
|
CODE: |
|
26
|
1
|
|
|
|
|
|
newXS(name, XS_Sub__Boolean_truthy, __FILE__); |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
void make_false (name) |
|
29
|
|
|
|
|
|
|
char *name |
|
30
|
|
|
|
|
|
|
CODE: |
|
31
|
2
|
|
|
|
|
|
newXS(name, XS_Sub__Boolean_falsey, __FILE__); |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
void make_undef (name) |
|
34
|
|
|
|
|
|
|
char *name |
|
35
|
|
|
|
|
|
|
CODE: |
|
36
|
1
|
|
|
|
|
|
newXS(name, XS_Sub__Boolean_undef, __FILE__); |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
void make_empty (name) |
|
39
|
|
|
|
|
|
|
char *name |
|
40
|
|
|
|
|
|
|
CODE: |
|
41
|
1
|
|
|
|
|
|
newXS(name, XS_Sub__Boolean_empty, __FILE__); |