Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29781
b: refs/heads/master
c: 850622d
h: refs/heads/master
i:
  29779: fb34825
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Jun 25, 2006
1 parent 71f81b7 commit 97a7fed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9c8ef5614da22666e339b125263d315cfaa89109
refs/heads/master: 850622dfaf3d62907c96707773e0f8e84b3c0c06
7 changes: 7 additions & 0 deletions trunk/scripts/kernel-doc
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ my $lineprefix="";
# 3 - scanning prototype.
# 4 - documentation block
my $state;
my $in_doc_sect;

#declaration types: can be
# 'function', 'struct', 'union', 'enum', 'typedef'
Expand Down Expand Up @@ -1706,6 +1707,7 @@ sub process_file($) {
if ($state == 0) {
if (/$doc_start/o) {
$state = 1; # next line is always the function name
$in_doc_sect = 0;
}
} elsif ($state == 1) { # this line is the function name (always)
if (/$doc_block/o) {
Expand Down Expand Up @@ -1756,10 +1758,15 @@ sub process_file($) {
$newcontents = $2;

if ($contents ne "") {
if (!$in_doc_sect && $verbose) {
print STDERR "Warning(${file}:$.): contents before sections\n";
++$warnings;
}
dump_section($section, xml_escape($contents));
$section = $section_default;
}

$in_doc_sect = 1;
$contents = $newcontents;
if ($contents ne "") {
if (substr($contents, 0, 1) eq " ") {
Expand Down

0 comments on commit 97a7fed

Please sign in to comment.