diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-09-09 03:44:24 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-09 09:46:01 +0000 |
commit | 8becbb3b066adee4495175867634bdba48ae2c5d (patch) | |
tree | ee7edae06da4aa16da18b69b90c33d73c8cbe916 /lib/warnings.pm | |
parent | eaf9b263cc668bb49ddb7f8c98c7ec5bb15479e1 (diff) | |
download | perl-8becbb3b066adee4495175867634bdba48ae2c5d.tar.gz |
One more chance... Elizabeth's change #21107 plus
Subject: Re: [PATCH] warnings.pl: each thread 10K smaller
Message-Id: <20030909014424.7ef5e0cd.rgarciasuarez@free.fr>
p4raw-link: @21107 on //depot/perl: 71a1411e8309f445a8e3afde57ce393886ff905f
p4raw-id: //depot/perl@21136
Diffstat (limited to 'lib/warnings.pm')
-rw-r--r-- | lib/warnings.pm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/warnings.pm b/lib/warnings.pm index 705548a976..edbe1a7c74 100644 --- a/lib/warnings.pm +++ b/lib/warnings.pm @@ -6,7 +6,7 @@ package warnings; -our $VERSION = '1.02'; +our $VERSION = '1.03'; =head1 NAME @@ -131,9 +131,9 @@ See L<perlmodlib/Pragmatic Modules> and L<perllexwarn>. =cut -use Carp ; +use Carp (); -%Offsets = ( +our %Offsets : unique = ( # Warnings Categories added in Perl 5.008 @@ -190,7 +190,7 @@ use Carp ; 'assertions' => 94, ); -%Bits = ( +our %Bits : unique = ( 'all' => "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55", # [0..47] 'ambiguous' => "\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00", # [29] 'assertions' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40", # [47] @@ -241,7 +241,7 @@ use Carp ; 'y2k' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10", # [46] ); -%DeadBits = ( +our %DeadBits : unique = ( 'all' => "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", # [0..47] 'ambiguous' => "\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00", # [29] 'assertions' => "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", # [47] @@ -301,7 +301,7 @@ $All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ; sub Croaker { delete $Carp::CarpInternal{'warnings'}; - croak(@_); + Carp::croak(@_); } sub bits @@ -470,10 +470,10 @@ sub warn my $message = pop ; my ($callers_bitmask, $offset, $i) = __chk(@_) ; - croak($message) + Carp::croak($message) if vec($callers_bitmask, $offset+1, 1) || vec($callers_bitmask, $Offsets{'all'}+1, 1) ; - carp($message) ; + Carp::carp($message) ; } sub warnif @@ -489,11 +489,11 @@ sub warnif (vec($callers_bitmask, $offset, 1) || vec($callers_bitmask, $Offsets{'all'}, 1)) ; - croak($message) + Carp::croak($message) if vec($callers_bitmask, $offset+1, 1) || vec($callers_bitmask, $Offsets{'all'}+1, 1) ; - carp($message) ; + Carp::carp($message) ; } 1; |