mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
kernel-doc: cleanup parameter type in function-typed arguments
A prototype like /** * foo - sample definition * @bar: a parameter */ int foo(int (*bar)(int x, int y)); is currently producing .. c:function:: int foo (int (*bar) (int x, int y) sample definition **Parameters** ``int (*)(int x, int y) bar`` a parameter Collapse the spaces so that the output is nicer. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
parent
f2c1a053ce
commit
02a4f4fe52
1 changed files with 1 additions and 0 deletions
|
@ -2409,6 +2409,7 @@ sub push_parameter($$$) {
|
||||||
# "[blah" in a parameter string;
|
# "[blah" in a parameter string;
|
||||||
###$param =~ s/\s*//g;
|
###$param =~ s/\s*//g;
|
||||||
push @parameterlist, $param;
|
push @parameterlist, $param;
|
||||||
|
$type =~ s/\s\s+/ /g;
|
||||||
$parametertypes{$param} = $type;
|
$parametertypes{$param} = $type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue