Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61594
b: refs/heads/master
c: 51f5a0c
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Jul 19, 2007
1 parent f988855 commit 3b7c234
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 5f8c7c98ae3888cf0a2cf320f514f75cc92f00be
refs/heads/master: 51f5a0c8f63990fcb6e09ed52be348df58c9e416
8 changes: 7 additions & 1 deletion trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ sub output_struct_xml(%) {
# pointer-to-function
print " $1 $parameter) ($2);\n";
} elsif ($type =~ m/^(.*?)\s*(:.*)/) {
# bitfield
print " $1 $parameter$2;\n";
} else {
print " ".$type." ".$parameter.";\n";
Expand Down Expand Up @@ -1261,6 +1262,7 @@ sub output_struct_text(%) {
# pointer-to-function
print "\t$1 $parameter) ($2);\n";
} elsif ($type =~ m/^(.*?)\s*(:.*)/) {
# bitfield
print "\t$1 $parameter$2;\n";
} else {
print "\t".$type." ".$parameter.";\n";
Expand Down Expand Up @@ -1697,6 +1699,8 @@ sub process_state3_function($$) {
my $x = shift;
my $file = shift;

$x =~ s@\/\/.*$@@gos; # strip C99-style comments to end of line

if ($x =~ m#\s*/\*\s+MACDOC\s*#io || ($x =~ /^#/ && $x !~ /^#define/)) {
# do nothing
}
Expand All @@ -1719,6 +1723,8 @@ sub process_state3_type($$) {
$x =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
$x =~ s@^\s+@@gos; # strip leading spaces
$x =~ s@\s+$@@gos; # strip trailing spaces
$x =~ s@\/\/.*$@@gos; # strip C99-style comments to end of line

if ($x =~ /^#/) {
# To distinguish preprocessor directive from regular declaration later.
$x .= ";";
Expand Down Expand Up @@ -1802,7 +1808,7 @@ sub process_file($) {

$state = 2;
if (/-(.*)/) {
# strip leading/trailing/multiple spaces #RDD:T:
# strip leading/trailing/multiple spaces
$descr= $1;
$descr =~ s/^\s*//;
$descr =~ s/\s*$//;
Expand Down

0 comments on commit 3b7c234

Please sign in to comment.