Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17671
b: refs/heads/master
c: a6d3fe7
h: refs/heads/master
i:
  17669: c214f1f
  17667: 373dda1
  17663: 5ac8c4b
v: v3
  • Loading branch information
Martin Waitz authored and Linus Torvalds committed Jan 10, 2006
1 parent b71ecf4 commit 586ed92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0863afb32b77fc89c7110b3d10fb048cb56bb1b5
refs/heads/master: a6d3fe77dace2c41a32b9699fe78960ab0908a97
12 changes: 8 additions & 4 deletions trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,7 @@ sub create_parameterlist($$$) {
my $type;
my $param;

# temporarily replace commas inside function pointer definition
while ($args =~ /(\([^\),]+),/) {
$args =~ s/(\([^\),]+),/$1#/g;
}
Expand Down Expand Up @@ -1465,19 +1466,22 @@ sub push_parameter($$$) {
my $param_name = $param;
$param_name =~ s/\[.*//;

if ($type eq "" && $param eq "...")
if ($type eq "" && $param =~ /\.\.\.$/)
{
$type="";
$param="...";
$parameterdescs{"..."} = "variable arguments";
$parameterdescs{$param} = "variable arguments";
}
elsif ($type eq "" && ($param eq "" or $param eq "void"))
{
$type="";
$param="void";
$parameterdescs{void} = "no arguments";
}
if (defined $type && $type && !defined $parameterdescs{$param_name}) {
# warn if parameter has no description
# (but ignore ones starting with # as these are no parameters
# but inline preprocessor statements
if (!defined $parameterdescs{$param_name} && $param_name !~ /^#/) {

$parameterdescs{$param_name} = $undescribed;

if (($type eq 'function') || ($type eq 'enum')) {
Expand Down

0 comments on commit 586ed92

Please sign in to comment.