projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a57c1
)
warnings.pl/pm: Croaker function: bug (perl v5.8, v5.9)
author
Bram
<perl-rt@wizbit.be>
Thu, 4 Aug 2005 23:55:33 +0000
(
01:55
+0200)
committer
Steve Peters
<steve@fisharerojo.org>
Sun, 30 Oct 2005 04:20:45 +0000
(
04:20
+0000)
Message-Id: <
42F28ED5
.
CFFDCCFD
@wizbit.be>
p4raw-id: //depot/perl@25888
lib/warnings.pm
patch
|
blob
|
history
warnings.pl
patch
|
blob
|
history
diff --git
a/lib/warnings.pm
b/lib/warnings.pm
index
85ce3de
..
7822f92
100644
(file)
--- a/
lib/warnings.pm
+++ b/
lib/warnings.pm
@@
-296,6
+296,7
@@
$All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ;
sub Croaker
{
require Carp::Heavy; # this initializes %CarpInternal
+ local $Carp::CarpInternal{'warnings'};
delete $Carp::CarpInternal{'warnings'};
Carp::croak(@_);
}
diff --git
a/warnings.pl
b/warnings.pl
index
bc6b42a
..
94cc34f
100644
(file)
--- a/
warnings.pl
+++ b/
warnings.pl
@@
-564,6
+564,7
@@
$All = "" ; vec($All, $Offsets{'all'}, 2) = 3 ;
sub Croaker
{
require Carp::Heavy; # this initializes %CarpInternal
+ local $Carp::CarpInternal{'warnings'};
delete $Carp::CarpInternal{'warnings'};
Carp::croak(@_);
}