Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit e1c6871

Browse files
committed
B-Xref-1.07_02: named anon subs
check the gv->CV if it is a CV
1 parent 41d2405 commit e1c6871

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

dist/Module-CoreList/lib/Module/CoreList.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17166,6 +17166,7 @@ for my $version ( sort { version_sort($a, $b) } keys %released ) {
1716617166
'Attribute::Handlers' => '1.00_01',
1716717167
'B::C' => '1.55_08',
1716817168
'B::CC' => '1.16_02',
17169+
'B::Xref' => '1.07_02',
1716917170
'ByteLoader' => '1.12',
1717017171
'CPAN' => '2.20_01',
1717117172
'CPAN::Bundle' => '5.5002',

ext/B/B/Xref.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package B::Xref;
22

3-
our $VERSION = '1.07_01';
3+
our $VERSION = '1.07_02';
44

55
=head1 NAME
66
@@ -76,7 +76,7 @@ A line number may be prefixed by a single letter:
7676
7777
=item i
7878
79-
Lexical variable introduced (declared with my()) for the first time.
79+
Lexical variable introduced (declared with my,our,state) for the first time.
8080
8181
=item &
8282
@@ -136,7 +136,7 @@ reported properly.
136136
137137
=head1 AUTHOR
138138
139-
Malcolm Beattie, [email protected].
139+
Malcolm Beattie C<retired>.
140140
141141
=cut
142142

@@ -379,7 +379,7 @@ sub pp_entersub {
379379
sub B::GV::xref {
380380
my $gv = shift;
381381
my $cv = $gv->CV;
382-
if ($$cv) {
382+
if ($$cv and ref $cv eq 'B::CV') {
383383
#return if $done{$$cv}++;
384384
$file = $gv->FILE;
385385
$line = $gv->LINE;

pod/perlcdelta.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,9 +1094,9 @@ attributes correctly:
10941094

10951095
Remove internal links to B::Debug
10961096

1097-
=item L<B::Xref> 1.07_01
1097+
=item L<B::Xref> 1.07_02
10981098

1099-
Support sub refs
1099+
Support sub refs, and named anon subs.
11001100

11011101
=item L<base> 2.27c
11021102

0 commit comments

Comments
 (0)