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.
Showing the changes to scripts/kernel-doc (1 of 1 file). Show all
Unified · Split
| @@ -2409,6 +2409,7 @@ sub push_parameter($$$) { · 2408 unmodified lines | |||
| 2409 | # "[blah" in a parameter string; | 2409 | # "[blah" in a parameter string; |
| 2410 | ###$param =~ s/\s*//g; | 2410 | ###$param =~ s/\s*//g; |
| 2411 | push @parameterlist, $param; | 2411 | push @parameterlist, $param; |
| 2412 | $type =~ s/\s\s+/ /g; | ||
| 2412 | $parametertypes{$param} = $type; | 2413 | $parametertypes{$param} = $type; |
| 2413 | } | 2414 | } |
| 2414 | 2415 | ||