| 1 | # -*- mode: Perl; buffer-read-only: t -*- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | # !!!!!!! DO NOT EDIT THIS FILE !!!!!!! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | # This file is built by regen/warnings.pl. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | # Any changes made here will be lost! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | package warnings; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | our $VERSION = "1.78"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | # Verify that we're called correctly so that warnings will work. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | # Can't use Carp, since Carp uses us! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | # String regexps because constant folding = smaller optree = less memory vs regexp literal | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | # see also strict.pm. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | die sprintf "Incorrect use of pragma '%s' at %s line %d.\n", __PACKAGE__, +(caller)[1,2] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | if __FILE__ !~ ( '(?x) \b '.__PACKAGE__.' \.pmc? \z' ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | && __FILE__ =~ ( '(?x) \b (?i:'.__PACKAGE__.') \.pmc? \z' ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | our %Offsets = ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | # Warnings Categories added in Perl 5.008 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | 'all' => 0, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | 'closure' => 2, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | 'deprecated' => 4, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | 'exiting' => 6, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | 'glob' => 8, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | 'io' => 10, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | 'closed' => 12, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | 'exec' => 14, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | 'layer' => 16, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | 'newline' => 18, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | 'pipe' => 20, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | 'unopened' => 22, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | 'misc' => 24, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | 'numeric' => 26, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | 'once' => 28, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | 'overflow' => 30, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | 'pack' => 32, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | 'portable' => 34, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | 'recursion' => 36, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | 'redefine' => 38, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | 'regexp' => 40, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | 'severe' => 42, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | 'debugging' => 44, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | 'inplace' => 46, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | 'internal' => 48, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | 'malloc' => 50, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | 'signal' => 52, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | 'substr' => 54, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | 'syntax' => 56, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | 'ambiguous' => 58, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | 'bareword' => 60, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | 'digit' => 62, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | 'parenthesis' => 64, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | 'precedence' => 66, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | 'printf' => 68, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | 'prototype' => 70, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | 'qw' => 72, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | 'reserved' => 74, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | 'semicolon' => 76, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | 'taint' => 78, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | 'threads' => 80, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | 'uninitialized' => 82, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | 'unpack' => 84, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | 'untie' => 86, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | 'utf8' => 88, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | 'void' => 90, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | # Warnings Categories added in Perl 5.011 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | 'imprecision' => 92, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | 'illegalproto' => 94, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | # Warnings Categories added in Perl 5.011003 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | 'deprecated::unicode_property_name' => 96, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | # Warnings Categories added in Perl 5.013 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | 'non_unicode' => 98, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | 'nonchar' => 100, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | 'surrogate' => 102, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | # Warnings Categories added in Perl 5.017 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | 'experimental' => 104, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | 'experimental::regex_sets' => 106, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | # Warnings Categories added in Perl 5.019 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | 'syscalls' => 108, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | # Warnings Categories added in Perl 5.021 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | 'experimental::re_strict' => 110, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | 'experimental::refaliasing' => 112, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | 'locale' => 114, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | 'missing' => 116, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | 'redundant' => 118, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | # Warnings Categories added in Perl 5.025 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | 'experimental::declared_refs' => 120, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | # Warnings Categories added in Perl 5.025011 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | 'deprecated::dot_in_inc' => 122, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | # Warnings Categories added in Perl 5.027 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | 'shadow' => 124, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | # Warnings Categories added in Perl 5.029 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | 'experimental::private_use' => 126, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | 'experimental::uniprop_wildcards' => 128, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | 'experimental::vlb' => 130, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | # Warnings Categories added in Perl 5.033 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | 'experimental::try' => 132, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | # Warnings Categories added in Perl 5.035 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | 'experimental::args_array_with_signatures'=> 134, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | 'experimental::builtin' => 136, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | 'experimental::defer' => 138, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | 'experimental::extra_paired_delimiters'=> 140, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | 'scalar' => 142, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | # Warnings Categories added in Perl 5.035009 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | 'deprecated::version_downgrade' => 144, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | # Warnings Categories added in Perl 5.03501 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | 'deprecated::delimiter_will_be_paired'=> 146, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | # Warnings Categories added in Perl 5.037 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | 'experimental::class' => 148, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | # Warnings Categories added in Perl 5.039008 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | 'deprecated::subsequent_use_version'=> 150, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | # Warnings Categories added in Perl 5.041 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | 'experimental::keyword_all' => 152, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | 'experimental::keyword_any' => 154, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | # Warnings Categories added in Perl 5.043 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | 'experimental::enhanced_xx' => 156, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | 'experimental::signature_named_parameters'=> 158, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | 'missing_import' => 160, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | our %Bits = ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | 'all' => "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55", # [0..83] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | 'ambiguous' => "\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [29] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | 'bareword' => "\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [30] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | 'closed' => "\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [6] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | 'closure' => "\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [1] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | 'debugging' => "\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [22] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | 'deprecated' => "\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x04\x00\x00\x45\x00\x00", # [2,48,61,72,73,75] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | 'deprecated::delimiter_will_be_paired'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00", # [73] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | 'deprecated::dot_in_inc' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00", # [61] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | 'deprecated::subsequent_use_version'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00", # [75] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | 'deprecated::unicode_property_name' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00", # [48] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | 'deprecated::version_downgrade' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00", # [72] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | 'digit' => "\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [31] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | 'exec' => "\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [7] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | 'exiting' => "\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [3] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | 'experimental' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x45\x01\x41\x55\x15\x10\x55\x00", # [52,53,55,56,60,63..70,74,76..79] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | 'experimental::args_array_with_signatures'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00", # [67] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | 'experimental::builtin' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00", # [68] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | 'experimental::class' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00", # [74] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | 'experimental::declared_refs' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00", # [60] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | 'experimental::defer' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00", # [69] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | 'experimental::enhanced_xx' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00", # [78] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | 'experimental::extra_paired_delimiters'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00", # [70] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | 'experimental::keyword_all' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00", # [76] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | 'experimental::keyword_any' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00", # [77] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | 'experimental::private_use' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00", # [63] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | 'experimental::re_strict' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00", # [55] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | 'experimental::refaliasing' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00", # [56] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | 'experimental::regex_sets' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00", # [53] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | 'experimental::signature_named_parameters'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00", # [79] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | 'experimental::try' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00", # [66] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | 'experimental::uniprop_wildcards' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00", # [64] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | 'experimental::vlb' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00", # [65] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | 'glob' => "\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [4] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | 'illegalproto' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [47] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | 'imprecision' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [46] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | 'inplace' => "\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [23] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | 'internal' => "\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [24] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | 'io' => "\x00\x54\x55\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00", # [5..11,54] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | 'layer' => "\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [8] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | 'locale' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00", # [57] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | 'malloc' => "\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [25] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | 'misc' => "\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [12] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | 'missing' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00", # [58] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | 'missing_import' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01", # [80] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | 'newline' => "\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [9] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | 'non_unicode' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00", # [49] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | 'nonchar' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00", # [50] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | 'numeric' => "\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [13] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | 'once' => "\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [14] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | 'overflow' => "\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [15] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | 'pack' => "\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [16] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | 'parenthesis' => "\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [32] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | 'pipe' => "\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [10] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | 'portable' => "\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [17] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | 'precedence' => "\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [33] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | 'printf' => "\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [34] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | 'prototype' => "\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [35] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | 'qw' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [36] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | 'recursion' => "\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [18] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | 'redefine' => "\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [19] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | 'redundant' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00", # [59] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | 'regexp' => "\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [20] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | 'reserved' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [37] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | 'scalar' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00", # [71] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | 'semicolon' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [38] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | 'severe' => "\x00\x00\x00\x00\x00\x54\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [21..25] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | 'shadow' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00", # [62] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | 'signal' => "\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [26] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | 'substr' => "\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [27] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | 'surrogate' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00", # [51] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | 'syntax' => "\x00\x00\x00\x00\x00\x00\x00\x55\x55\x15\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [28..38,47] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | 'syscalls' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00", # [54] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | 'taint' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [39] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | 'threads' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [40] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | 'uninitialized' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [41] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | 'unopened' => "\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [11] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | 'unpack' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [42] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | 'untie' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [43] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | 'utf8' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x54\x00\x00\x00\x00\x00\x00\x00\x00", # [44,49..51] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | 'void' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [45] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | our %DeadBits = ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | 'all' => "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", # [0..83] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | 'ambiguous' => "\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [29] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | 'bareword' => "\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [30] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | 'closed' => "\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [6] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | 'closure' => "\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [1] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | 'debugging' => "\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [22] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | 'deprecated' => "\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x08\x00\x00\x8a\x00\x00", # [2,48,61,72,73,75] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | 'deprecated::delimiter_will_be_paired'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00", # [73] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | 'deprecated::dot_in_inc' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00", # [61] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | 'deprecated::subsequent_use_version'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00", # [75] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | 'deprecated::unicode_property_name' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00", # [48] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | 'deprecated::version_downgrade' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00", # [72] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | 'digit' => "\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [31] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | 'exec' => "\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [7] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | 'exiting' => "\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [3] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | 'experimental' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8a\x02\x82\xaa\x2a\x20\xaa\x00", # [52,53,55,56,60,63..70,74,76..79] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | 'experimental::args_array_with_signatures'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00", # [67] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | 'experimental::builtin' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00", # [68] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | 'experimental::class' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00", # [74] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | 'experimental::declared_refs' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00", # [60] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | 'experimental::defer' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00", # [69] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | 'experimental::enhanced_xx' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00", # [78] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | 'experimental::extra_paired_delimiters'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00", # [70] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | 'experimental::keyword_all' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00", # [76] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | 'experimental::keyword_any' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00", # [77] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | 'experimental::private_use' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00", # [63] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | 'experimental::re_strict' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00", # [55] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | 'experimental::refaliasing' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00", # [56] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | 'experimental::regex_sets' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00", # [53] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | 'experimental::signature_named_parameters'=> "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00", # [79] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | 'experimental::try' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00", # [66] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | 'experimental::uniprop_wildcards' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00", # [64] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | 'experimental::vlb' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00", # [65] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | 'glob' => "\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [4] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | 'illegalproto' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [47] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | 'imprecision' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [46] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | 'inplace' => "\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [23] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | 'internal' => "\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [24] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | 'io' => "\x00\xa8\xaa\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00", # [5..11,54] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | 'layer' => "\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [8] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | 'locale' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00", # [57] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | 'malloc' => "\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [25] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | 'misc' => "\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [12] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | 'missing' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00", # [58] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | 'missing_import' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02", # [80] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | 'newline' => "\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [9] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | 'non_unicode' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00", # [49] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | 'nonchar' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00", # [50] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | 'numeric' => "\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [13] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | 'once' => "\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [14] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | 'overflow' => "\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [15] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | 'pack' => "\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [16] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | 'parenthesis' => "\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [32] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | 'pipe' => "\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [10] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | 'portable' => "\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [17] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | 'precedence' => "\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [33] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | 'printf' => "\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [34] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | 'prototype' => "\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [35] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | 'qw' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [36] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | 'recursion' => "\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [18] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | 'redefine' => "\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [19] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | 'redundant' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00", # [59] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | 'regexp' => "\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [20] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | 'reserved' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [37] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | 'scalar' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00", # [71] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | 'semicolon' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [38] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | 'severe' => "\x00\x00\x00\x00\x00\xa8\x0a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [21..25] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | 'shadow' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00", # [62] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | 'signal' => "\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [26] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | 'substr' => "\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [27] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | 'surrogate' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00", # [51] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | 'syntax' => "\x00\x00\x00\x00\x00\x00\x00\xaa\xaa\x2a\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [28..38,47] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | 'syscalls' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00", # [54] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 297 | 'taint' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [39] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 298 | 'threads' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [40] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 299 | 'uninitialized' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [41] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 300 | 'unopened' => "\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [11] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 301 | 'unpack' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [42] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 302 | 'untie' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [43] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 303 | 'utf8' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xa8\x00\x00\x00\x00\x00\x00\x00\x00", # [44,49..51] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 304 | 'void' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00", # [45] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 305 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 306 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 307 | our %NoOp = ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 308 | 'deprecated::goto_construct' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 309 | 'deprecated::missing_import_called_with_args'=> 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 310 | 'deprecated::smartmatch' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 311 | 'experimental::alpha_assertions' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 312 | 'experimental::bitwise' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 313 | 'experimental::const_attr' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 314 | 'experimental::for_list' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 315 | 'experimental::isa' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 316 | 'experimental::lexical_subs' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 317 | 'experimental::postderef' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 318 | 'experimental::script_run' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 319 | 'experimental::signatures' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 320 | 'experimental::smartmatch' => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 321 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 322 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 323 | # These are used by various things, including our own tests | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 324 | our $NONE = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 325 | our $DEFAULT = "\x10\x01\x00\x00\x00\x50\x04\x00\x00\x00\x00\x00\x01\x40\x05\x45\x55\x15\x55\x55\x01"; # [2,4,22,23,25,48,55..57,60,61,63..70,72..80] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 326 | our $LAST_BIT = 162 ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 327 | our $BYTES = 21 ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 328 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 329 | sub Croaker | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 330 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 331 | 0 | ▶ | require Carp; # this initializes %CarpInternal | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Croaker: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 332 | 0 | local $Carp::CarpInternal{'warnings'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 333 | 0 | delete $Carp::CarpInternal{'warnings'}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 334 | 0 | Carp::croak(@_); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 335 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 336 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 337 | sub _expand_bits { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 338 | 0 | ▶ | my $bits = shift; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_expand_bits: not called CC=4 SCAR=30.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 339 | 0 | my $want_len = ($LAST_BIT + 7) >> 3; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 340 | 0 | my $len = length($bits); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 341 | 0 | ▶ | if ($len != $want_len) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 342 | 0 | ▶ | if ($bits eq "") { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 343 | 0 | $bits = "\x00" x $want_len; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 344 | } elsif ($len > $want_len) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 345 | 0 | substr $bits, $want_len, $len-$want_len, ""; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 346 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 347 | 0 | my $x = vec($bits, $Offsets{all} >> 1, 2); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 348 | 0 | $x |= $x << 2; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 349 | 0 | $x |= $x << 4; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 350 | 0 | $bits .= chr($x) x ($want_len - $len); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 351 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 352 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 353 | 0 | return $bits; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 354 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 355 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 356 | sub _bits { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 357 | 0 | ▶ | my $mask = shift ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_bits: not called CC=8 SCAR=42.8
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 358 | 0 | my $catmask ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 359 | 0 | my $fatal = 0 ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 360 | 0 | my $no_fatal = 0 ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 361 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 362 | 0 | $mask = _expand_bits($mask); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 363 | 0 | foreach my $word ( @_ ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 364 | 0 | ▶ | next if $NoOp{$word}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 365 | 0 | ▶ | if ($word eq 'FATAL') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 3 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 366 | 0 | $fatal = 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 367 | 0 | $no_fatal = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 368 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 369 | elsif ($word eq 'NONFATAL') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 370 | 0 | $fatal = 0; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 371 | 0 | $no_fatal = 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 372 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 373 | elsif ($catmask = $Bits{$word}) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 374 | 0 | $mask |= $catmask ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 375 | 0 | ▶ | $mask |= $DeadBits{$word} if $fatal ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 376 | 0 | ▶ | $mask = ~(~$mask | $DeadBits{$word}) if $no_fatal ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 377 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 378 | else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 379 | 0 | { Croaker("Unknown warnings category '$word'")} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 380 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 381 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 382 | 0 | return $mask ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 383 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 384 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 385 | sub bits | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 386 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 387 | # called from B::Deparse.pm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 388 | 0 | ▶ | push @_, 'all' unless @_ ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
bits: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 389 | 0 | return _bits("", @_) ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 390 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 391 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 392 | sub import | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 393 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 394 | 0 | ▶ | my $invocant = shift; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
import: not called CC=10 SCAR=47.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 395 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 396 | # append 'all' when implied (empty import list or after a lone | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 397 | # "FATAL" or "NONFATAL") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 398 | 0 | ▶ | push @_, 'all' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/9
not @_ or @_ == 1 and $_[0] eq "FATAL" || $_[0] eq "NONFATAL"
@_ == 1 and $_[0] eq "FATAL" || $_[0] eq "NONFATAL"
$_[0] eq "FATAL" or $_[0] eq "NONFATAL"
MC/DC0%0/4
not @_ or @_ == 1 and $_[0] eq "FATAL" || $_[0] eq "NONFATAL"
not @_
@_ == 1
$_[0] eq "FATAL"
$_[0] eq "NONFATAL"
Truth table0%0/5
not(A) or B and C or D
A= not @_B= @_ == 1C= $_[0] eq "FATAL"D= $_[0] eq "NONFATAL"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 399 | if !@_ || (@_==1 && ($_[0] eq 'FATAL' || $_[0] eq 'NONFATAL')); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 400 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 401 | 0 | my @fatal = (); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 402 | 0 | foreach my $warning (@_) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 403 | 0 | ▶ | if($warning =~ /^(NON)?FATAL$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 404 | 0 | @fatal = ($warning); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 405 | } elsif(substr($warning, 0, 1) ne '-') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 406 | 0 | ▶ | my $mask = ${^WARNING_BITS} // ($^W ? $Bits{all} : $DEFAULT) ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
${^WARNING_BITS} // ($^W ? $Bits{"all"} : $DEFAULT)
MC/DC0%0/2
${^WARNING_BITS} // ($^W ? $Bits{"all"} : $DEFAULT)
${^WARNING_BITS}
($^W ? $Bits{"all"} : $DEFAULT)
Truth table0%0/3
A // B
A= ${^WARNING_BITS}B= ($^W ? $Bits{"all"} : $DEFAULT)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 407 | 0 | ${^WARNING_BITS} = _bits($mask, @fatal, $warning); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 408 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 409 | 0 | $invocant->unimport(substr($warning, 1)); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 410 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 411 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 412 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 413 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 414 | sub unimport | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 415 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 416 | 0 | ▶ | shift; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
unimport: not called CC=10 SCAR=47.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 417 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 418 | 0 | my $catmask ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 419 | 0 | ▶ | my $mask = ${^WARNING_BITS} // ($^W ? $Bits{all} : $DEFAULT) ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
${^WARNING_BITS} // ($^W ? $Bits{"all"} : $DEFAULT)
MC/DC0%0/2
${^WARNING_BITS} // ($^W ? $Bits{"all"} : $DEFAULT)
${^WARNING_BITS}
($^W ? $Bits{"all"} : $DEFAULT)
Truth table0%0/3
A // B
A= ${^WARNING_BITS}B= ($^W ? $Bits{"all"} : $DEFAULT)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 420 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 421 | # append 'all' when implied (empty import list or after a lone "FATAL") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 422 | 0 | ▶ | push @_, 'all' if !@_ || @_==1 && $_[0] eq 'FATAL'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
not @_ or @_ == 1 and $_[0] eq "FATAL"
@_ == 1 and $_[0] eq "FATAL"
MC/DC0%0/3
not @_ or @_ == 1 and $_[0] eq "FATAL"
not @_
@_ == 1
$_[0] eq "FATAL"
Truth table0%0/4
not(A) or B and C
A= not @_B= @_ == 1C= $_[0] eq "FATAL"
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 423 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 424 | 0 | $mask = _expand_bits($mask); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 425 | 0 | foreach my $word ( @_ ) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 426 | 0 | ▶ | next if $NoOp{$word}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 427 | 0 | ▶ | if ($word eq 'FATAL') { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 428 | 0 | next; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 429 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 430 | elsif ($catmask = $Bits{$word}) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 431 | 0 | $mask = ~(~$mask | $catmask | $DeadBits{$word}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 432 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 433 | else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 434 | 0 | { Croaker("Unknown warnings category '$word'")} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 435 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 436 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 437 | 0 | ${^WARNING_BITS} = $mask ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 438 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 439 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 440 | my %builtin_type; @builtin_type{qw(SCALAR ARRAY HASH CODE REF GLOB LVALUE Regexp)} = (); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 441 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 442 | sub LEVEL () { 8 }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 443 | sub MESSAGE () { 4 }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 444 | sub FATAL () { 2 }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 445 | sub NORMAL () { 1 }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 446 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 447 | sub __chk | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 448 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 449 | 0 | ▶ | my $category ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__chk: not called CC=36 SCAR=71.9
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 450 | my $offset ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 451 | 0 | my $isobj = 0 ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 452 | 0 | my $wanted = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 453 | 0 | my $has_message = $wanted & MESSAGE; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 454 | 0 | my $has_level = $wanted & LEVEL ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 455 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 456 | 0 | ▶ | if ($has_level) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 457 | 0 | ▶ | if (@_ != ($has_message ? 3 : 2)) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 458 | 0 | my $sub = (caller 1)[3]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 459 | 0 | ▶ | my $syntax = $has_message | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 460 | ? "category, level, 'message'" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 461 | : 'category, level'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 462 | 0 | Croaker("Usage: $sub($syntax)"); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 463 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 464 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 465 | ▶ | elsif (not @_ == 1 || @_ == ($has_message ? 2 : 0)) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
@_ == 1 || @_ == ($has_message ? 2 : 0)
MC/DC0%0/2
@_ == 1 || @_ == ($has_message ? 2 : 0)
@_ == 1
@_ == ($has_message ? 2 : 0)
Truth table0%0/3
A || B
A= @_ == 1B= @_ == ($has_message ? 2 : 0)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 466 | 0 | my $sub = (caller 1)[3]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 467 | 0 | ▶ | my $syntax = $has_message ? "[category,] 'message'" : '[category]'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 468 | 0 | Croaker("Usage: $sub($syntax)"); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 469 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 470 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 471 | 0 | ▶ | my $message = pop if $has_message; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 472 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 473 | 0 | ▶ | if (@_) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 474 | # check the category supplied. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 475 | 0 | $category = shift ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 476 | 0 | ▶ | if (my $type = ref $category) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 477 | Croaker("not an object") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 478 | 0 | ▶ | if exists $builtin_type{$type}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 479 | 0 | $category = $type; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 480 | 0 | $isobj = 1 ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 481 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 482 | 0 | $offset = $Offsets{$category}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 483 | 0 | ▶ | Croaker("Unknown warnings category '$category'") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 484 | unless defined $offset; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 485 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 486 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 487 | 0 | $category = caller(1); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 488 | 0 | $offset = $Offsets{$category}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 489 | 0 | ▶ | Croaker("package '$category' not registered for warnings") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 490 | unless defined $offset ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 491 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 492 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 493 | 0 | my $i; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 494 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 495 | 0 | ▶ | if ($isobj) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 496 | 0 | my $pkg; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 497 | 0 | $i = 2; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 498 | 0 | ▶ | while (do { { package DB; $pkg = (caller($i++))[0] } } ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 499 | 0 | ▶ | last unless @DB::args && $DB::args[0] =~ /^$category=/ ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
@DB::args and $DB::args[0] =~ /^$category=/
MC/DC0%0/2
@DB::args and $DB::args[0] =~ /^$category=/
@DB::args
$DB::args[0] =~ /^$category=/
Truth table0%0/3
A and B
A= @DB::argsB= $DB::args[0] =~ /^$category=/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 501 | 0 | $i -= 2 ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 502 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 503 | elsif ($has_level) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 504 | 0 | $i = 2 + shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 505 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 506 | else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 507 | 0 | $i = _error_loc(); # see where Carp will allocate the error | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 508 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 509 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 510 | # Default to 0 if caller returns nothing. Default to $DEFAULT if it | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 511 | # explicitly returns undef. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 512 | 0 | my(@callers_bitmask) = (caller($i))[9] ; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 513 | 0 | ▶ | my $callers_bitmask = | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$callers_bitmask[0] // $DEFAULT
MC/DC0%0/2
$callers_bitmask[0] // $DEFAULT
$callers_bitmask[0]
$DEFAULT
Truth table0%0/3
A // B
A= $callers_bitmask[0]B= $DEFAULT
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 514 | @callers_bitmask ? $callers_bitmask[0] // $DEFAULT : 0 ; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 515 | 0 | ▶ | length($callers_bitmask) > ($offset >> 3) or $offset = $Offsets{all}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 516 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 517 | 0 | my @results; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 518 | 0 | foreach my $type (FATAL, NORMAL) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 519 | 0 | ▶ | next unless $wanted & $type; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 520 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 521 | 0 | push @results, vec($callers_bitmask, $offset + $type - 1, 1); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 522 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 523 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 524 | # &enabled and &fatal_enabled | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 525 | 0 | ▶ | return $results[0] unless $has_message; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 526 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 527 | # &warnif, and the category is neither enabled as warning nor as fatal | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 528 | 0 | ▶ | return if ($wanted & (NORMAL | FATAL | MESSAGE)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
($wanted & 7) == 7 and not $results[0] || $results[1]
$results[0] || $results[1]
MC/DC0%0/3
($wanted & 7) == 7 and not $results[0] || $results[1]
($wanted & 7) == 7
$results[0]
$results[1]
Truth table0%0/4
A and not(B || C)
A= ($wanted & 7) == 7B= $results[0]C= $results[1]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 529 | == (NORMAL | FATAL | MESSAGE) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 530 | && !($results[0] || $results[1]); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 531 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 532 | # If we have an explicit level, bypass Carp. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 533 | 0 | ▶ | if ($has_level and @callers_bitmask) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$has_level and @callers_bitmask
MC/DC0%0/2
$has_level and @callers_bitmask
$has_level
@callers_bitmask
Truth table0%0/3
A and B
A= $has_levelB= @callers_bitmask
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 534 | # logic copied from util.c:mess_sv | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 535 | 0 | my $stuff = " at " . join " line ", (caller $i)[1,2]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 536 | $stuff .= sprintf ", <%s> %s %d", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 537 | *${^LAST_FH}{NAME}, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 538 | 0 | ▶ | ($/ eq "\n" ? "line" : "chunk"), $. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
Condition0%0/3
$. and ${^LAST_FH}
MC/DC0%0/2
$. and ${^LAST_FH}
$.
${^LAST_FH}
Truth table0%0/3
A and B
A= $.B= ${^LAST_FH}
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 539 | if $. && ${^LAST_FH}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 540 | 0 | ▶ | die "$message$stuff.\n" if $results[0]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 541 | 0 | return warn "$message$stuff.\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 542 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 543 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 544 | 0 | require Carp; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 545 | 0 | ▶ | Carp::croak($message) if $results[0]; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 546 | # will always get here for &warn. will only get here for &warnif if the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 547 | # category is enabled | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 548 | 0 | Carp::carp($message); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 549 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 550 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 551 | sub _mkMask | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 552 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 553 | 0 | ▶ | my ($bit) = @_; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_mkMask: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 554 | 0 | my $mask = ""; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 555 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 556 | 0 | vec($mask, $bit, 1) = 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 557 | 0 | return $mask; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 558 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 559 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 560 | sub register_categories | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 561 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 562 | 0 | ▶ | my @names = @_; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
register_categories: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 563 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 564 | 0 | for my $name (@names) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 565 | 0 | ▶ | if (! defined $Bits{$name}) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 566 | 0 | $Offsets{$name} = $LAST_BIT; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 567 | 0 | $Bits{$name} = _mkMask($LAST_BIT++); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 568 | 0 | $DeadBits{$name} = _mkMask($LAST_BIT++); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 569 | 0 | ▶ | if (length($Bits{$name}) > length($Bits{all})) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 570 | 0 | $Bits{all} .= "\x55"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 571 | 0 | $DeadBits{all} .= "\xaa"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 572 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 573 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 574 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 575 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 576 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 577 | sub _error_loc { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 578 | 0 | ▶ | require Carp; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_error_loc: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 579 | 0 | goto &Carp::short_error_loc; # don't introduce another stack frame | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 580 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 581 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 582 | sub enabled | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 583 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 584 | 0 | ▶ | return __chk(NORMAL, @_); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
enabled: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 585 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 586 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 587 | sub fatal_enabled | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 588 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 589 | 0 | ▶ | return __chk(FATAL, @_); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
fatal_enabled: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 590 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 591 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 592 | sub warn | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 593 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 594 | 0 | ▶ | return __chk(FATAL | MESSAGE, @_); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
warn: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 595 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 596 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 597 | sub warnif | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 598 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 599 | 0 | ▶ | return __chk(NORMAL | FATAL | MESSAGE, @_); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
warnif: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 600 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 601 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 602 | sub enabled_at_level | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 603 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 604 | 0 | ▶ | return __chk(NORMAL | LEVEL, @_); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
enabled_at_level: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 605 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 606 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 607 | sub fatal_enabled_at_level | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 608 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 609 | 0 | ▶ | return __chk(FATAL | LEVEL, @_); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
fatal_enabled_at_level: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 610 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 611 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 612 | sub warn_at_level | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 613 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 614 | 0 | ▶ | return __chk(FATAL | MESSAGE | LEVEL, @_); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
warn_at_level: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 615 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 616 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 617 | sub warnif_at_level | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 618 | { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 619 | 0 | ▶ | return __chk(NORMAL | FATAL | MESSAGE | LEVEL, @_); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
warnif_at_level: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 620 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 621 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 622 | # These are not part of any public interface, so we can delete them to save | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 623 | # space. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 624 | delete @warnings::{qw(NORMAL FATAL MESSAGE LEVEL)}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 625 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 626 | 1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 627 | __END__ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||