Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61593
b: refs/heads/master
c: 5f8c7c9
h: refs/heads/master
i:
  61591: 9028ee6
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Jul 19, 2007
1 parent bd9c6d5 commit f988855
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 2ac534bc127bcf31f8cb76f65b1b0b7cba5e81ac
refs/heads/master: 5f8c7c98ae3888cf0a2cf320f514f75cc92f00be
14 changes: 10 additions & 4 deletions trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ use strict;

my $errors = 0;
my $warnings = 0;
my $anon_struct_union = 0;

# match expressions used to find embedded type information
my $type_constant = '\%([-_\w]+)';
Expand Down Expand Up @@ -1510,8 +1511,13 @@ sub push_parameter($$$) {
my $param = shift;
my $type = shift;
my $file = shift;
my $anon = 0;

if (($anon_struct_union == 1) && ($type eq "") &&
($param eq "}")) {
return; # ignore the ending }; from anon. struct/union
}

$anon_struct_union = 0;
my $param_name = $param;
$param_name =~ s/\[.*//;

Expand All @@ -1530,16 +1536,16 @@ sub push_parameter($$$) {
# handle unnamed (anonymous) union or struct:
{
$type = $param;
$param = "{unnamed_" . $param. "}";
$param = "{unnamed_" . $param . "}";
$parameterdescs{$param} = "anonymous\n";
$anon = 1;
$anon_struct_union = 1;
}

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

$parameterdescs{$param_name} = $undescribed;
Expand Down

0 comments on commit f988855

Please sign in to comment.