1 package warnings
::register
;
7 warnings::register - warnings import function
18 vec($mask, $bit, 1) = 1 ;
25 my $package = (caller(0))[0] ;
26 if (! defined $warnings::Bits
{$package}) {
27 $warnings::Bits
{$package} = mkMask
($warnings::LAST_BIT
) ;
28 vec($warnings::Bits
{'all'}, $warnings::LAST_BIT
, 1) = 1 ;
29 $warnings::Offsets
{$package} = $warnings::LAST_BIT
++ ;
30 foreach my $k (keys %warnings::Bits
) {
31 vec($warnings::Bits
{$k}, $warnings::LAST_BIT
, 1) = 0 ;
33 $warnings::DeadBits
{$package} = mkMask
($warnings::LAST_BIT
);
34 vec($warnings::DeadBits
{'all'}, $warnings::LAST_BIT
++, 1) = 1 ;