Use ".Fn foo" instead of ".Nm" for function names.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@540 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2012-03-31 20:53:50 +00:00
parent f163a4b9df
commit 98687ed638

View file

@ -195,7 +195,7 @@ sub parse_source($) {
# separate argument names with |
$argnames =~ s/\" \"/|/g;
# and surround with ()
$argnames =~ s/^\"(.*)\"$/($1)/;
$argnames =~ s/^\"(.*)\"$/$1/;
# $argnames is now a regexp that matches argument names
$inliteral = $inlist = $intaglist = 0;
foreach (split("\n", $source)) {
@ -286,8 +286,8 @@ sub parse_source($) {
$man .= "$_\n";
next;
}
s/\s*=$func\b\s*/\n.Nm\n/gs;
s/\s*=$argnames\b\s*/\n.Fa $1\n/gs;
s/\s*=($func)\b\s*/\n.Fn $1\n/gs;
s/\s*=($argnames)\b\s*/\n.Fa $1\n/gs;
s/\s*=(struct \w+(?: \*)?)\b\s*/\n.Vt $1\n/gs;
s/\s*:([a-z_]+)\b\s*/\n.Va $1\n/gs;
s/\s*;([a-z_]+)\b\s*/\n.Dv $1\n/gs;