xs/abi_in.xs

filter: Statementstmt 100% 9 / 9 Branchbran 50.0% 4 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 76.4% 13 / 17 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« xs/abi.xs ↑ Summary include/tkr/tkr_rule.h »
1 # The two tables this dist is built on, seen from Perl: their versions, and
2 # a public method that resolves both and reports them.
3  
4 MODULE = Time::Keeper::Recurrence PACKAGE = Time::Keeper::Recurrence
5  
6 IV
7 _tk_abi_version()
8 CODE:
9 2 ▶ RETVAL = tkr_tk(aTHX)->abi_version;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = tkr_tk(aTHX)->abi_version; 0 2 2
10 OUTPUT:
11 RETVAL
12  
13 IV
14 _tkz_abi_version()
15 CODE:
16 1 ▶ RETVAL = tkr_tkz(aTHX)->abi_version;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = tkr_tkz(aTHX)->abi_version; 0 1 1
17 OUTPUT:
18 RETVAL
19  
20 IV
21 _tk_abi_needed()
22 ALIAS:
23 _tkz_abi_needed = 1
24 CODE:
25 2 ▶ RETVAL = ix ? TKR_TKZ_NEEDS : TKR_TK_NEEDS;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = ix ? TKR_TKZ_NEEDS : TKR_TK_NEEDS; 0 2 2
26 OUTPUT:
27 RETVAL
28  
29 void
30 abi_versions(class)
31 SV *class
32 PREINIT:
33 IV tk, tkz;
34 PPCODE:
35 PERL_UNUSED_VAR(class);
36 /* both tables first: resolving one runs Perl, which may move the stack SP points into */
37 5 tk = tkr_tk(aTHX)->abi_version;
38 5 tkz = tkr_tkz(aTHX)->abi_version;
39 2 SP = PL_stack_base + ax - 1; /* the frame's base again, by index: the stack may have moved */
40 2 ▶ EXTEND(SP, 2);
Branch: 1 branch
BranchTrueFalseTotal
EXTEND(SP, 2); 0 2 2
41 2 mPUSHi(tk);
42 2 mPUSHi(tkz);
« xs/abi.xs ↑ Summary include/tkr/tkr_rule.h »