| 1 |
|
| |
| 2 |
|
| # The C ABI's two Perl-visible ends: the table's address, and the selftest |
| 3 |
|
| # that walks a document through every entry. |
| 4 |
|
| |
| 5 |
|
| MODULE = File::Raw::XML PACKAGE = File::Raw::XML |
| 6 |
|
| |
| 7 |
|
| IV |
| 8 |
|
| _abi_ptr() |
| 9 |
|
| CODE: |
| 10 |
2 |
▶ | RETVAL = PTR2IV(&FRX_ABI); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = PTR2IV(&FRX_ABI); |
0 |
2 |
2 |
|
| 11 |
|
| OUTPUT: |
| 12 |
|
| RETVAL |
| 13 |
|
| |
| 14 |
|
| IV |
| 15 |
|
| _abi_version() |
| 16 |
|
| CODE: |
| 17 |
|
| /* the table's own version, for a consumer's build-time guard to |
| 18 |
|
| * assert against without resolving the table itself */ |
| 19 |
1 |
▶ | RETVAL = FRX_ABI.abi_version; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = FRX_ABI.abi_version; |
0 |
1 |
1 |
|
| 20 |
|
| OUTPUT: |
| 21 |
|
| RETVAL |
| 22 |
|
| |
| 23 |
|
| void |
| 24 |
|
| _abi_selftest() |
| 25 |
|
| PREINIT: |
| 26 |
|
| SV *out; |
| 27 |
|
| PPCODE: |
| 28 |
|
| /* ($input, $exclusive_bytes), or an empty list on any mismatch */ |
| 29 |
1 |
| out = frx_abi_selftest(aTHX); |
| 30 |
1 |
▶ | if (!out) XSRETURN_EMPTY; |
Branch: 1 branch
| Branch | True | False | Total |
| if (!out) XSRETURN_EMPTY; |
0 |
1 |
1 |
|
| 31 |
1 |
▶ | XPUSHs(sv_2mortal(newSVpvn(FRX_SELFTEST_INPUT, sizeof FRX_SELFTEST_INPUT - 1))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVpvn(FRX_SELFTEST_INPUT, sizeof FRX_SELFTEST_INPUT - 1))); |
0 |
1 |
1 |
|
| 32 |
1 |
▶ | XPUSHs(sv_2mortal(out)); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(out)); |
0 |
1 |
1 |
|
| 33 |
|
| |
| 34 |
|
| IV |
| 35 |
|
| _abi_selftest_full() |
| 36 |
|
| CODE: |
| 37 |
|
| /* 0 when every full-profile entry answered as it should, and the |
| 38 |
|
| * number of the check that did not otherwise */ |
| 39 |
1 |
▶ | RETVAL = frx_abi_selftest_full(aTHX); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = frx_abi_selftest_full(aTHX); |
0 |
1 |
1 |
|
| 40 |
|
| OUTPUT: |
| 41 |
|
| RETVAL |