summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1a9f5cf)
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4125)
use OpenSSL::Util::Pod;
# Options.
use OpenSSL::Util::Pod;
# Options.
-our($opt_s);
-our($opt_u);
+our($opt_s);
+our($opt_u);
sub help()
{
print <<EOF;
Find small errors (nits) in documentation. Options:
sub help()
{
print <<EOF;
Find small errors (nits) in documentation. Options:
+ -d Detailed list of undocumented (implies -u)
-l Print bogus links
-n Print nits in POD pages
-s Also print missing sections in POD pages (implies -n)
-l Print bogus links
-n Print nits in POD pages
-s Also print missing sections in POD pages (implies -n)
|| $macro =~ /DEPRECATEDIN/
|| $macro =~ /IMPLEMENT_/
|| $macro =~ /DECLARE_/;
|| $macro =~ /DEPRECATEDIN/
|| $macro =~ /IMPLEMENT_/
|| $macro =~ /DECLARE_/;
+ print "$f:$macro\n" if $opt_d;
# Skip ASN1 utilities
next if $func =~ /^ASN1_/;
# Skip ASN1 utilities
next if $func =~ /^ASN1_/;
- print "$libname:$func\n";
+ print "$libname:$func\n" if $opt_d;
$count++;
}
print "# Found $count missing from $numfile\n\n";
$count++;
}
print "# Found $count missing from $numfile\n\n";
+$opt_n = 1 if $opt_s or $opt_p;
+$opt_u = 1 if $opt_d;
-die "Need one of -l -n -s -p or -u flags.\n"
- unless $opt_l or $opt_n or $opt_s or $opt_p or $opt_u;
+die "Need one of -[dlnspu] flags.\n"
+ unless $opt_l or $opt_n or $opt_u;
-$opt_n = 1 if $opt_s or $opt_p;
if ( $opt_n ) {
&publicize() if $opt_p;
if ( $opt_n ) {
&publicize() if $opt_p;