Perlito5X/Config.pm untested

filter: Statementstmt 0.0% 0 / 30 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 10 totaltotal 0.0% 0 / 62 CC 5 SCAR 28.7
CC
5
Cov
0%
import
30.0
BEGIN
2.0
BEGIN
2.0
CRAP 17.6
1 # This file was created by configpm when Perl was built. Any changes
2 # made to this file will be lost the next time perl is built.
3  
4 # for a description of the variables, please have a look at the
5 # Glossary file, as written in the Porting folder, or use the url:
6 # http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/Glossary
7  
8 package Config;
9 use strict;
10 use warnings;
11 use vars '%Config', '$VERSION';
12  
13 $VERSION = "5.022000";
14  
15 # Skip @Config::EXPORT because it only contains %Config, which we special
16 # case below as it's not a function. @Config::EXPORT won't change in the
17 # lifetime of Perl 5.
18 my %Export_Cache = (myconfig => 1, config_sh => 1, config_vars => 1,
19 config_re => 1, compile_date => 1, local_patches => 1,
20 bincompat_options => 1, non_bincompat_options => 1,
21 header_files => 1);
22  
23 @Config::EXPORT = qw(%Config);
24 @Config::EXPORT_OK = keys %Export_Cache;
25  
26 # Need to stub all the functions to make code such as print Config::config_sh
27 # keep working
28  
29 sub bincompat_options;
30 sub compile_date;
31 sub config_re;
32 sub config_sh;
33 sub config_vars;
34 sub header_files;
35 sub local_patches;
36 sub myconfig;
37 sub non_bincompat_options;
38  
39 # Define our own import method to avoid pulling in the full Exporter:
40 sub import {
41 shift;
42 @_ = @Config::EXPORT unless @_;
43  
44 my @funcs = grep $_ ne '%Config', @_;
45 my $export_Config = @funcs < @_ ? 1 : 0;
46  
47 no strict 'refs';
48 my $callpkg = caller(0);
49 foreach my $func (@funcs) {
50 die qq{"$func" is not exported by the Config module\n}
51 unless $Export_Cache{$func};
52 *{$callpkg.'::'.$func} = \&{$func};
53 }
54  
55 *{"$callpkg\::Config"} = \%Config if $export_Config;
56 return;
57 }
58  
59 # die "$0: Perl lib version (5.22.0) doesn't match executable '$^X' version ($])"
60 # unless $^V;
61 #
62 # $^V eq 5.22.0
63 # or die sprintf "%s: Perl lib version (5.22.0) doesn't match executable '$^X' version (%vd)", $0, $^V;
64  
65  
66 %Config = (
67 archlibexp => '/usr/local/lib/perl5/5.22.0/darwin-2level',
68 archname => 'darwin-2level',
69 cc => 'cc',
70 # d_readlink => 'define',
71 # d_symlink => 'define',
72 d_readdir => '1',
73 dlext => 'bundle',
74 dlsrc => 'dl_dlopen.xs',
75 dont_use_nlink => undef,
76 exe_ext => '',
77 extensions => 'List/Util',
78 inc_version_list => '5.20.0',
79 intsize => '4',
80 ivsize => '4',
81 ldlibpthname => 'DYLD_LIBRARY_PATH',
82 libpth => '/usr/local/lib /usr/bin/../lib/clang/4.2/lib /usr/lib /opt/local/lib',
83 osname => 'darwin',
84 osvers => '12.6.0',
85 path_sep => ':',
86 privlibexp => '/usr/local/lib/perl5/5.22.0',
87 scriptdir => '/usr/local/bin',
88 sitearchexp => '/usr/local/lib/perl5/site_perl/5.22.0/darwin-2level',
89 sitelibexp => '/usr/local/lib/perl5/site_perl/5.22.0',
90 so => 'dylib',
91 useithreads => undef,
92 usevendorprefix => undef,
93 version => '5.22.0',
94 d_double_has_inf => '1',
95 d_double_has_nan => '1',
96 nvsize => '8',
97 );
98