Suprtool.xs

filter: Statementstmt 0.0% 0 / 12 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 20 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/MPE/Suprtool.pm ↑ Summary
1 #include "EXTERN.h"
2 #include "perl.h"
3 #include "XSUB.h"
4 #include <stdio.h>
5  
6 static void (*supr)(char *);
7 #ifndef ST2LOC
8 # define ST2LOC ST2XL.PUB.ROBELLE
9 #endif
10 #define STR(x) #x
11 #define XSTR(x) STR(x)
12  
13 int
14 0 getsuprcall(char *xl)
15 {
16 static char suprtool2[] = "\0suprtool2";
17 int stat;
18 0 HPGETPROCPLABEL(4, suprtool2, &supr, &stat, xl, 0,0,0,0,0);
19 0 ▶ if (stat) {
Branch: 1 branch
BranchTrueFalseTotal
if (stat) { 0 0 0
20 int depth, stat2;
21 0 HPERRMSG(4, 2, 0, 0, stat, 0, 0, 0);
22 0 HPERRDEPTH(2, &depth, &stat2);
23 0 ▶ if (stat2 == 0 && depth != 0) {
Branch: 2 branches
BranchTrueFalseTotal
if (stat2 == 0 && depth != 0) { 0 0 0
if (stat2 == 0 && depth != 0) { 0 0 0
24 0 HPERRMSG(4, 1, depth, 0, stat, 0, 0, 0);
25 }
26 0 fprintf (stderr, "Could not load suprtool2 xl='%s'\n",
27 xl+1);
28 }
29 0 return (int)supr;
30 }
31  
32 MODULE = MPE::Suprtool PACKAGE = MPE::Suprtool
33  
34 char *
35 configst2loc()
36 CODE:
37 0 RETVAL = XSTR(ST2LOC);
38 OUTPUT:
39 RETVAL
40  
41  
42 int
43 getsuprcall(xl)
44 char *xl
45 PROTOTYPE: $
46  
47 int
48 suprcall(suprbuf)
49 char *suprbuf
50 PROTOTYPE: $
51 CODE:
52 0 supr(suprbuf);
53 0 ▶ RETVAL = !*(short *)(&suprbuf[2]);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = !*(short *)(&suprbuf[2]); 0 0 0
54 OUTPUT:
55 RETVAL
« blib/lib/MPE/Suprtool.pm ↑ Summary