diff options
author | David Mitchell <davem@iabyn.com> | 2014-12-17 15:54:18 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2014-12-17 15:54:18 +0000 |
commit | 7a6610caf3cdf1fa6548256a684d042f4b69a0ab (patch) | |
tree | ede8da215392048cdcdc471b46710b1b043305bd /autodoc.pl | |
parent | 2ec11c706e768baf2cef93905360762457cecb0d (diff) | |
download | perl-7a6610caf3cdf1fa6548256a684d042f4b69a0ab.tar.gz |
Remove duplicate apidoc entries
Modify apidoc.pl to warn about duplicate apidoc entries, and
remove duplicates for av_tindex and toLOWER_LC
Diffstat (limited to 'autodoc.pl')
-rw-r--r-- | autodoc.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autodoc.pl b/autodoc.pl index 6ba223ef13..9395d9102d 100644 --- a/autodoc.pl +++ b/autodoc.pl @@ -159,6 +159,10 @@ DOC: $ret = $docref->{retval}; } + if (exists $docs{$inline_where}{$curheader}{$name}) { + warn "$0: duplicate API entry for '$name' in $inline_where/$curheader\n"; + next; + } $docs{$inline_where}{$curheader}{$name} = [$flags, $docs, $ret, $file, @args]; |