Skip to content

Commit

Permalink
kernel-doc, use c:macro
Browse files Browse the repository at this point in the history
Probably works with Sphinx < 3 as well
  • Loading branch information
jakobandersen committed Sep 25, 2020
1 parent daaac7f commit 6fd2076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,8 @@ sub output_function_rst(%) {
$lineprefix = "";
output_highlight_rst($args{'purpose'});
$start = "\n\n**Syntax**\n\n ``";
} elsif ($args{'functiontype'} eq "") {
print ".. c:macro:: ";
} else {
print ".. c:function:: ";
}
Expand Down

0 comments on commit 6fd2076

Please sign in to comment.