This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
parts/apicheck.pl: ignore duplicate function
authorKarl Williamson <khw@cpan.org>
Sat, 20 Jul 2019 21:01:59 +0000 (15:01 -0600)
committerNicolas R <atoomic@cpan.org>
Fri, 27 Sep 2019 22:39:29 +0000 (16:39 -0600)
(cherry picked from commit 9dfb2a45f3db2125b67e3f6b9783e10a129dab57)
Signed-off-by: Nicolas R <atoomic@cpan.org>
dist/Devel-PPPort/parts/apicheck.pl

index 9c2a0f3..65ece66 100644 (file)
@@ -200,6 +200,8 @@ for $f (@f) {
   $ignore{$f->{name}} and next;
   $f->{flags}{A} or next;  # only public API members
 
+  $ignore{$f->{name}} = 1; # ignore duplicates
+
   my $Perl_ = $f->{flags}{p} ? 'Perl_' : '';
 
   my $stack = '';