Commit 8963f360 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

[PATCH] kernel-doc: Improved support for man-page generation [2/9]

Forward port from 2.4, originally by Christoph Hellwig
parent 5a969545
...@@ -870,7 +870,7 @@ sub output_function_man(%) { ...@@ -870,7 +870,7 @@ sub output_function_man(%) {
my ($parameter, $section); my ($parameter, $section);
my $count; my $count;
print ".TH \"$args{'module'}\" 9 \"$args{'function'}\" \"$man_date\" \"API Manual\" LINUX\n"; print ".TH \"$args{'function'}\" 9 \"$args{'function'}\" \"$man_date\" \"Kernel Hacker's Manual\" LINUX\n";
print ".SH NAME\n"; print ".SH NAME\n";
print $args{'function'}." \\- ".$args{'purpose'}."\n"; print $args{'function'}." \\- ".$args{'purpose'}."\n";
...@@ -896,13 +896,13 @@ sub output_function_man(%) { ...@@ -896,13 +896,13 @@ sub output_function_man(%) {
$parenth = ""; $parenth = "";
} }
print ".SH Arguments\n"; print ".SH ARGUMENTS\n";
foreach $parameter (@{$args{'parameterlist'}}) { foreach $parameter (@{$args{'parameterlist'}}) {
print ".IP \"".$parameter."\" 12\n"; print ".IP \"".$parameter."\" 12\n";
output_highlight($args{'parameterdescs'}{$parameter}); output_highlight($args{'parameterdescs'}{$parameter});
} }
foreach $section (@{$args{'sectionlist'}}) { foreach $section (@{$args{'sectionlist'}}) {
print ".SH \"$section\"\n"; print ".SH \"", uc $section, "\"\n";
output_highlight($args{'sections'}{$section}); output_highlight($args{'sections'}{$section});
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment