line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::AssertC99; |
2
|
1
|
|
|
1
|
|
2362
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
24
|
|
4
|
1
|
|
|
1
|
|
4
|
use utf8; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
5
|
1
|
|
|
1
|
|
30
|
use Devel::CheckCompiler qw/check_c99_or_exit/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
83
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
2565
|
sub import { check_c99_or_exit() } |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
1; |
10
|
|
|
|
|
|
|
__END__ |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Devel::AssertC99 - C99 is available |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use Module::Build; |
19
|
|
|
|
|
|
|
use Devel::AssertC99; # <== check at here |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my $builder = Module::Build->new( |
22
|
|
|
|
|
|
|
configure_requires => { |
23
|
|
|
|
|
|
|
'Devel::AssertC99', |
24
|
|
|
|
|
|
|
}, |
25
|
|
|
|
|
|
|
... |
26
|
|
|
|
|
|
|
); |
27
|
|
|
|
|
|
|
$builder->create_build_script; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 DESCRIPTION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
This module checks C99 compiler's availability. If it's not available, exit with code 0. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
It makes CPAN testers status as N/A. |
34
|
|
|
|
|
|
|
|