Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/B/B/Concise.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use warnings;

use Exporter 'import';

our $VERSION = "1.009";
our $VERSION = "1.010";
our @EXPORT_OK = qw( set_style set_style_standard add_callback
concise_subref concise_cv concise_main
add_style walk_output compile reset_sequence );
Expand Down Expand Up @@ -146,7 +146,7 @@ sub concise_stashref {
: ref\$h->{$k} eq 'GLOB' ? *{$h->{$k}}{CODE} || next
: next;
reset_sequence();
print "FUNC: *", $name, "::", $k, "\n";
print $walkHandle "FUNC: *", $name, "::", $k, "\n";
my $codeobj = svref_2object($coderef);
next unless ref $codeobj eq 'B::CV';
eval { concise_cv_obj($order, $codeobj, $k) };
Expand Down
10 changes: 9 additions & 1 deletion ext/B/t/concise.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BEGIN {
require 'test.pl'; # we use runperl from 'test.pl', so can't use Test::More
}

plan tests => 167;
plan tests => 168;

require_ok("B::Concise");

Expand Down Expand Up @@ -513,4 +513,12 @@ like $out, qr/$end/, 'OP_AND->op_other points correctly';
is($hints[2], 'v:us,*,&,{,x*,x&,x$,$,fea=15', "hints[2]");
}

# test that walk_output() handle is used for stash member names
{
sub Walked::foo {}
my $res = render('-basic', '-stash=Walked');
like($res, qr/FUNC: \*Walked::foo/,
"check stash member name captured");
}

__END__
5 changes: 3 additions & 2 deletions pod/perldelta.pod
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ XXX Remove this section if F<Porting/corelist-perldelta.pl> did not add any cont

=item *

L<XXX> has been upgraded from version A.xx to B.yy.
L<B::Concise> has been upgraded from version 1.009 to 1.010.

XXX If there was something important to note about this change, include that here.
Send the function header generated by the C<-stash> option to the
configured walk handle. [GH #24024]

=back

Expand Down
Loading