Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44904
b: refs/heads/master
c: 134fe01
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Dec 22, 2006
1 parent 734aa9e commit 4013496
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 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: 01b2d93ca4c495f056471189ac6c4e6ac4cbbccb
refs/heads/master: 134fe01bfafa74e691d84bf15666fb30e89896ff
17 changes: 15 additions & 2 deletions trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,7 @@ sub push_parameter($$$) {
my $param = shift;
my $type = shift;
my $file = shift;
my $anon = 0;

my $param_name = $param;
$param_name =~ s/\[.*//;
Expand All @@ -1484,9 +1485,20 @@ sub push_parameter($$$) {
$param="void";
$parameterdescs{void} = "no arguments";
}
elsif ($type eq "" && ($param eq "struct" or $param eq "union"))
# handle unnamed (anonymous) union or struct:
{
$type = $param;
$param = "{unnamed_" . $param. "}";
$parameterdescs{$param} = "anonymous\n";
$anon = 1;
}

# warn if parameter has no description
# (but ignore ones starting with # as these are no parameters
# but inline preprocessor statements
# (but ignore ones starting with # as these are not parameters
# but inline preprocessor statements);
# also ignore unnamed structs/unions;
if (!$anon) {
if (!defined $parameterdescs{$param_name} && $param_name !~ /^#/) {

$parameterdescs{$param_name} = $undescribed;
Expand All @@ -1500,6 +1512,7 @@ sub push_parameter($$$) {
" No description found for parameter '$param'\n";
++$warnings;
}
}

push @parameterlist, $param;
$parametertypes{$param} = $type;
Expand Down

0 comments on commit 4013496

Please sign in to comment.