This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
B::Lint doesn't work
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 5 Mar 2002 22:51:18 +0000 (23:51 +0100)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 6 Mar 2002 00:35:22 +0000 (00:35 +0000)
Message-ID: <20020305225118.C733@rafael>

p4raw-id: //depot/perl@15055

ext/B/B/Lint.pm

index 35378ef..81e0f0e 100644 (file)
@@ -118,7 +118,7 @@ Malcolm Beattie, mbeattie@sable.ox.ac.uk.
 =cut
 
 use strict;
-use B qw(walkoptree main_root walksymtable svref_2object parents
+use B qw(walkoptree_slow main_root walksymtable svref_2object parents
          OPf_WANT_LIST OPf_WANT OPf_STACKED G_ARRAY
         );
 
@@ -279,12 +279,12 @@ sub B::GV::lintcv {
     return if !$$cv || $done_cv{$$cv}++;
     my $root = $cv->ROOT;
     #warn "    root = $root (0x$$root)\n";#debug
-    walkoptree($root, "lint") if $$root;
+    walkoptree_slow($root, "lint") if $$root;
 }
 
 sub do_lint {
     my %search_pack;
-    walkoptree(main_root, "lint") if ${main_root()};
+    walkoptree_slow(main_root, "lint") if ${main_root()};
     
     # Now do subs in main
     no strict qw(vars refs);