line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#============================================================= -*-Perl-*- |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Template::Stash::XS |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# DESCRIPTION |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# Perl bootstrap for XS module. Inherits methods from |
8
|
|
|
|
|
|
|
# Template::Stash when not implemented in the XS module. |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
#======================================================================== |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package Template::Stash::XS; |
13
|
|
|
|
|
|
|
|
14
|
78
|
|
|
78
|
|
1234
|
use strict; |
|
78
|
|
|
|
|
96
|
|
|
78
|
|
|
|
|
1877
|
|
15
|
78
|
|
|
78
|
|
242
|
use warnings; |
|
78
|
|
|
|
|
80
|
|
|
78
|
|
|
|
|
1920
|
|
16
|
78
|
|
|
78
|
|
233
|
use Template; |
|
78
|
|
|
|
|
77
|
|
|
78
|
|
|
|
|
1384
|
|
17
|
78
|
|
|
78
|
|
24516
|
use Template::Stash; |
|
78
|
|
|
|
|
123
|
|
|
78
|
|
|
|
|
5870
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
our $AUTOLOAD; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
BEGIN { |
22
|
78
|
|
|
78
|
|
389
|
require DynaLoader; |
23
|
78
|
|
|
|
|
891
|
@Template::Stash::XS::ISA = qw( DynaLoader Template::Stash ); |
24
|
|
|
|
|
|
|
|
25
|
78
|
|
|
|
|
115
|
eval { |
26
|
78
|
|
|
|
|
27646
|
bootstrap Template::Stash::XS $Template::VERSION; |
27
|
|
|
|
|
|
|
}; |
28
|
78
|
50
|
|
|
|
9726
|
if ($@) { |
29
|
0
|
|
|
|
|
0
|
die "Couldn't load Template::Stash::XS $Template::VERSION:\n\n$@\n"; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub DESTROY { |
34
|
|
|
|
|
|
|
# no op |
35
|
1464
|
|
|
1464
|
|
7991
|
1; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
# catch missing method calls here so perl doesn't barf |
40
|
|
|
|
|
|
|
# trying to load *.al files |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub AUTOLOAD { |
43
|
0
|
|
|
0
|
|
|
my ($self, @args) = @_; |
44
|
0
|
|
|
|
|
|
my @c = caller(0); |
45
|
0
|
|
|
|
|
|
my $auto = $AUTOLOAD; |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
$auto =~ s/.*:://; |
48
|
0
|
|
|
|
|
|
$self =~ s/=.*//; |
49
|
|
|
|
|
|
|
|
50
|
0
|
|
|
|
|
|
die "Can't locate object method \"$auto\"" . |
51
|
|
|
|
|
|
|
" via package \"$self\" at $c[1] line $c[2]\n"; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
__END__ |