This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
209a9bc
)
Declare hints only if needed.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 18 Apr 2001 20:23:02 +0000
(20:23 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Wed, 18 Apr 2001 20:23:02 +0000
(20:23 +0000)
p4raw-id: //depot/perl@9741
ext/B/B/Deparse.pm
patch
|
blob
|
blame
|
history
diff --git
a/ext/B/B/Deparse.pm
b/ext/B/B/Deparse.pm
index
25db66a
..
7004975
100644
(file)
--- a/
ext/B/B/Deparse.pm
+++ b/
ext/B/B/Deparse.pm
@@
-995,7
+995,7
@@
sub declare_warnings {
sub declare_hints {
my ($from, $to) = @_;
my $bits = $to;
- return
sprintf "BEGIN {\$^H &= ~0xFF; \$^H |= %x}\n", $bits
;
+ return
$bits ? (sprintf "BEGIN {\$^H &= ~0xFF; \$^H |= %x}\n", $bits) : ''
;
}
sub pp_dbstate { pp_nextstate(@_) }