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
|
|
@ -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…
Reference in New Issue