summaryrefslogtreecommitdiff
path: root/autodoc.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-11-17 16:36:31 +0000
committerNicholas Clark <nick@ccl4.org>2009-11-17 16:36:31 +0000
commitd65113e3415a7bf08be94ad231bf0828177c8925 (patch)
tree026990f4887ec9d1ff57dd33a67c5ab61e50b391 /autodoc.pl
parented6f739c614e9c52ea6a8707c1e58d36ee71a096 (diff)
downloadperl-d65113e3415a7bf08be94ad231bf0828177c8925.tar.gz
Correctly check that functions flagged as documented do have documentation.
Diffstat (limited to 'autodoc.pl')
-rw-r--r--autodoc.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/autodoc.pl b/autodoc.pl
index 042131e976..8c47ecf24c 100644
--- a/autodoc.pl
+++ b/autodoc.pl
@@ -69,6 +69,7 @@ DOC:
else {
$docfuncs{$name} = [$flags, $docs, $ret, $file, $curheader, @args];
}
+ $seenfuncs{$name} = 1;
if (defined $doc) {
if ($doc =~ /^=(?:for|head)/) {
$in = $doc;
@@ -189,7 +190,6 @@ while (<IN>) {
$retval =~ s/\t//;
my $docref = delete $docfuncs{$func};
- $seenfuncs{$func} = 1;
if ($docref and @$docref) {
if ($flags =~ /A/) {
$docref->[0].="x" if $flags =~ /M/;