diff options
author | Craig A. Berry <craigberry@mac.com> | 2007-02-08 18:42:44 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2007-02-08 18:42:44 +0000 |
commit | 622db3b875c7512ec2f05392f0939959b718d042 (patch) | |
tree | 5d148e6224bdc988a8dec20ad3eca26cd2cfb8cb /vms | |
parent | 3a964d776bf965819f93acda3c971d2de972cbf9 (diff) | |
download | perl-622db3b875c7512ec2f05392f0939959b718d042.tar.gz |
Switch from Carp to plain old warn in vms/ext/XSSymSet.pm
because Carp now in some cases depends on things that may not
be available from miniperl or before extensions are built.
p4raw-id: //depot/perl@30177
Diffstat (limited to 'vms')
-rw-r--r-- | vms/ext/XSSymSet.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vms/ext/XSSymSet.pm b/vms/ext/XSSymSet.pm index 679ede4bcf..18aa261124 100644 --- a/vms/ext/XSSymSet.pm +++ b/vms/ext/XSSymSet.pm @@ -1,6 +1,5 @@ package ExtUtils::XSSymSet; -use Carp qw( &carp ); use strict; use vars qw( $VERSION ); $VERSION = '1.0'; @@ -69,7 +68,7 @@ sub trimsym { } } } - carp "Warning: long symbol $name\n\ttrimmed to $trimmed\n\t" unless $silent; + warn "Warning: long symbol $name\n\ttrimmed to $trimmed\n\t" unless $silent; return $trimmed; } @@ -87,12 +86,12 @@ sub addsym { my($i) = "00"; $trimmed = $self->trimsym($sym,$maxlen-3,$silent); while (exists $self->{"${trimmed}_$i"}) { $i++; } - carp "Warning: duplicate symbol $trimmed\n\tchanged to ${trimmed}_$i\n\t(original was $sym)\n\t" + warn "Warning: duplicate symbol $trimmed\n\tchanged to ${trimmed}_$i\n\t(original was $sym)\n\t" unless $silent; $trimmed .= "_$i"; } elsif (not $silent and $trimmed ne $sym) { - carp "Warning: long symbol $sym\n\ttrimmed to $trimmed\n\t"; + warn "Warning: long symbol $sym\n\ttrimmed to $trimmed\n\t"; } $self->{$trimmed} = $sym; $self->{'__N+Map'}->{$sym} = $trimmed; |