line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
/* |
2
|
|
|
|
|
|
|
* |
3
|
|
|
|
|
|
|
* Copyright (c) 2018, Nicolas R. |
4
|
|
|
|
|
|
|
* |
5
|
|
|
|
|
|
|
* This is free software; you can redistribute it and/or modify it under the |
6
|
|
|
|
|
|
|
* same terms as Perl itself. |
7
|
|
|
|
|
|
|
* |
8
|
|
|
|
|
|
|
*/ |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
#include |
11
|
|
|
|
|
|
|
#include |
12
|
|
|
|
|
|
|
#include |
13
|
|
|
|
|
|
|
#include |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
MODULE = Perl__Phase PACKAGE = Perl::Phase |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
SV* |
18
|
|
|
|
|
|
|
current_phase() |
19
|
|
|
|
|
|
|
PPCODE: |
20
|
|
|
|
|
|
|
{ |
21
|
0
|
0
|
|
|
|
|
XPUSHs(newSViv(PL_phase)); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
BOOT: |
25
|
|
|
|
|
|
|
{ |
26
|
|
|
|
|
|
|
HV *stash; |
27
|
|
|
|
|
|
|
|
28
|
2
|
|
|
|
|
|
stash = gv_stashpvn("Perl::Phase", 11, TRUE); |
29
|
|
|
|
|
|
|
|
30
|
2
|
|
|
|
|
|
newCONSTSUB(stash, "_loaded", &PL_sv_yes ); |
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
|
|
|
newCONSTSUB(stash, "PERL_PHASE_CONSTRUCT", newSViv(PERL_PHASE_CONSTRUCT) ); |
33
|
2
|
|
|
|
|
|
newCONSTSUB(stash, "PERL_PHASE_START", newSViv(PERL_PHASE_START) ); |
34
|
2
|
|
|
|
|
|
newCONSTSUB(stash, "PERL_PHASE_CHECK", newSViv(PERL_PHASE_CHECK) ); |
35
|
2
|
|
|
|
|
|
newCONSTSUB(stash, "PERL_PHASE_INIT", newSViv(PERL_PHASE_INIT) ); |
36
|
2
|
|
|
|
|
|
newCONSTSUB(stash, "PERL_PHASE_RUN", newSViv(PERL_PHASE_RUN) ); |
37
|
2
|
|
|
|
|
|
newCONSTSUB(stash, "PERL_PHASE_END", newSViv(PERL_PHASE_END) ); |
38
|
2
|
|
|
|
|
|
newCONSTSUB(stash, "PERL_PHASE_DESTRUCT", newSViv(PERL_PHASE_DESTRUCT) ); |
39
|
|
|
|
|
|
|
} |