| 1 |
|
| MODULE = Punk PACKAGE = Punk |
| 2 |
|
| |
| 3 |
|
| PROTOTYPES: DISABLE |
| 4 |
|
| |
| 5 |
|
| # `use Punk` (punk_import.h): turn on strict and warnings in the caller, get or |
| 6 |
|
| # make that class's registrar, and install the DSL - every keyword a magic CV |
| 7 |
|
| # carrying the registrar, from one table. lib/Punk.pm keeps the documentation. |
| 8 |
|
| void |
| 9 |
|
| import(class, ...) |
| 10 |
|
| SV *class |
| 11 |
|
| CODE: |
| 12 |
|
| { |
| 13 |
1402 |
▶ | const char *caller = CopSTASHPV(PL_curcop); |
Branch: 7 branches
| Branch | True | False | Total |
| const char *caller = CopSTASHPV(PL_curcop); |
1402 |
0 |
1402 |
| const char *caller = CopSTASHPV(PL_curcop); |
1402 |
0 |
1402 |
| const char *caller = CopSTASHPV(PL_curcop); |
1402 |
0 |
1402 |
| const char *caller = CopSTASHPV(PL_curcop); |
0 |
1402 |
1402 |
| const char *caller = CopSTASHPV(PL_curcop); |
0 |
0 |
0 |
| const char *caller = CopSTASHPV(PL_curcop); |
1402 |
0 |
1402 |
| const char *caller = CopSTASHPV(PL_curcop); |
0 |
1402 |
1402 |
|
| 14 |
|
| PERL_UNUSED_VAR(class); |
| 15 |
|
| PERL_UNUSED_VAR(items); |
| 16 |
1402 |
▶ | # uncoverable branch true |
Branch: 1 branch
| Branch | True | False | Total |
| # uncoverable branch true |
0 |
1402 |
1402 |
|
| 17 |
1402 |
| # uncoverable condition left count:1 class:ignore_covered_err |
| 18 |
1402 |
| if (!caller) XSRETURN_EMPTY; |
| 19 |
1402 |
| pki_pragma(aTHX_ "strict"); |
| 20 |
1402 |
| pki_pragma(aTHX_ "warnings"); |
| 21 |
|
| pki_export(aTHX_ sv_2mortal(newSVpv(caller, 0))); |
| 22 |
|
| XSRETURN_EMPTY; |
| 23 |
|
| } |
| 24 |
|
| |
| 25 |
|
| PROTOTYPES: DISABLE |
| 26 |
|
| |
| 27 |
|
| int |
| 28 |
|
| # uncoverable statement |
| 29 |
|
| # uncoverable subroutine |
| 30 |
|
| _xs_ok() |
| 31 |
|
| CODE: |
| 32 |
0 |
▶ | RETVAL = 1; /* # uncoverable statement */ |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = 1; /* # uncoverable statement */ |
0 |
0 |
0 |
|
| 33 |
|
| OUTPUT: |
| 34 |
|
| RETVAL |
| 35 |
|
| |