PPerl.xs

filter: Statementstmt 0.0% 0 / 9 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 13 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/PPerl.pm ↑ Summary main.c »
1 #include "EXTERN.h"
2 #include "perl.h"
3 #include "XSUB.h"
4  
5 #include "pass_fd.c"
6  
7 MODULE = PPerl PACKAGE = PPerl
8  
9 PROTOTYPES: DISABLE
10  
11 void
12 setreadonly(name, value)
13 char * name
14 int value
15 CODE:
16 GV *tmpgv;
17 0 ▶ if ((tmpgv = gv_fetchpv(name, TRUE, SVt_PV))) {
Branch: 1 branch
BranchTrueFalseTotal
if ((tmpgv = gv_fetchpv(name, TRUE, SVt_PV))) { 0 0 0
18 0 SvREADONLY_off(GvSV(tmpgv));
19 0 sv_setiv(GvSV(tmpgv), value);
20 0 SvREADONLY_on(GvSV(tmpgv));
21 }
22  
23  
24 int
25 s_pipe(in, out)
26 SV * in
27 SV * out
28 CODE:
29 int fd[2];
30  
31 0 RETVAL = s_pipe(fd);
32 0 sv_setiv(in, fd[0]);
33 0 sv_setiv(out, fd[1]);
34 OUTPUT:
35 RETVAL
36  
37  
38 int
39 send_fd(over, this)
40 int over
41 int this
42  
43  
44 int
45 recv_fd(on)
46 int on
47  
48  
49 int
50 read_int(fd)
51 int fd
52 CODE:
53 int foo;
54  
55 0 read(fd, &foo, sizeof(foo));
56 0 ▶ RETVAL = foo;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = foo; 0 0 0
57 OUTPUT:
58 RETVAL
« blib/lib/PPerl.pm ↑ Summary main.c »