Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54660
b: refs/heads/master
c: 884f281
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Linus Torvalds committed May 8, 2007
1 parent f3ae10b commit b9e0721
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 1525dccbc248b87568f2477f1b2d417b69d418c3
refs/heads/master: 884f2810b15b6bb489c9dca5013aafbea2f19fba
11 changes: 10 additions & 1 deletion trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,16 @@ sub create_parameterlist($$$) {
if ($args[0] =~ m/\*/) {
$args[0] =~ s/(\*+)\s*/ $1/;
}
my @first_arg = split('\s+', shift @args);

my @first_arg;
if ($args[0] =~ /^(.*\s+)(.*?\[.*\].*)$/) {
shift @args;
push(@first_arg, split('\s+', $1));
push(@first_arg, $2);
} else {
@first_arg = split('\s+', shift @args);
}

unshift(@args, pop @first_arg);
$type = join " ", @first_arg;

Expand Down

0 comments on commit b9e0721

Please sign in to comment.