Ver Fonte

wikiheaders: manpages See Also sections should specify 3 vs 3type.

(cherry picked from commit 5481ea4cd482de8edcac0994e3b7fd3d796e202d)
Ryan C. Gordon há 11 meses atrás
pai
commit
59937e0fd5
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      build-scripts/wikiheaders.pl

+ 6 - 1
build-scripts/wikiheaders.pl

@@ -1974,7 +1974,12 @@ if ($copy_direction == 1) {  # --copy-to-headers
                 s/\A\s+//;
                 s/\s+\Z//;
                 next if $_ eq '';
-                $str .= "$nextstr.BR $_ (3)";
+                my $seealso_symtype = $headersymstype{$_};
+                my $seealso_mansection = '3';
+                if (defined($seealso_symtype) && ($seealso_symtype >= 3) && ($seealso_symtype <= 5)) {  # struct/union/enum/typedef
+                    $seealso_mansection = '3type';
+                }
+                $str .= "$nextstr.BR $_ ($seealso_mansection)";
                 $nextstr = ",\n";
             }
             $str .= "\n";