-l Print bogus links
-n Print nits in POD pages
-p Warn if non-public name documented (implies -n)
- -u List undocumented functions
+ -u Count undocumented functions
-h Print this help message
-c List undocumented commands and options
EOF
sub checkmacros()
{
my $count = 0;
+ my %seen;
print "# Checking macros (approximate)\n";
foreach my $f ( glob('include/openssl/*.h') ) {
while ( <IN> ) {
next unless /^#\s*define\s*(\S+)\(/;
my $macro = $1;
- next if $docced{$macro};
+ next if $docced{$macro} || defined $seen{$macro};
next if $macro =~ /i2d_/
|| $macro =~ /d2i_/
|| $macro =~ /DEPRECATEDIN/
|| $macro =~ /DECLARE_/;
print "$f:$macro\n" if $opt_d;
$count++;
+ $seen{$macro} = 1;
}
close(IN);
}
my $libname = shift;
my $numfile = shift;
my $count = 0;
+ my %seen;
foreach my $func ( &parsenum($numfile) ) {
- next if $docced{$func};
+ next if $docced{$func} || defined $seen{$func};
# Skip ASN1 utilities
next if $func =~ /^ASN1_/;
print "$libname:$func\n" if $opt_d;
$count++;
+ $seen{$func} = 1;
}
print "# Found $count missing from $numfile\n\n";
}