diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-04-19 04:00:00 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-04-19 04:00:00 +0000 |
commit | 46e045034336a2cc90c1798cd7cc07af744ddfd6 (patch) | |
tree | 3b9b51fc482e729f663d25333e77fbed9aaa939a /scripts/kernel-doc | |
parent | 31dc59d503a02e84c4de98826452acaeb56dc15a (diff) |
Merge with Linux 2.3.99-pre4.
Diffstat (limited to 'scripts/kernel-doc')
-rw-r--r-- | scripts/kernel-doc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 1e24b8169..b9e872d20 100644 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -238,6 +238,7 @@ sub output_highlight { if ($line eq ""){ print $lineprefix, $blankline; } else { + $line =~ s/\\\\\\/\&/g; print $lineprefix, $line; } print "\n"; @@ -640,6 +641,12 @@ sub dump_function { } $type = join " ", @args; + if ($type eq "" && $param eq "...") + { + $type="..."; + $param="..."; + $parameters{"..."} = "variable arguments"; + } if ($type eq "") { $type=""; @@ -753,6 +760,9 @@ foreach $file (@ARGV) { $newcontents = $2; if ($contents ne "") { + $contents =~ s/\&/\\\\\\amp;/g; + $contents =~ s/\</\\\\\\lt;/g; + $contents =~ s/\>/\\\\\\gt;/g; dump_section($section, $contents); $section = $section_default; } @@ -765,6 +775,9 @@ foreach $file (@ARGV) { } elsif (/$doc_end/) { if ($contents ne "") { + $contents =~ s/\&/\\\\\\amp;/g; + $contents =~ s/\</\\\\\\lt;/g; + $contents =~ s/\>/\\\\\\gt;/g; dump_section($section, $contents); $section = $section_default; $contents = ""; @@ -777,6 +790,9 @@ foreach $file (@ARGV) { # miguel-style comment kludge, look for blank lines after # @parameter line to signify start of description if ($1 eq "" && $section =~ m/^@/) { + $contents =~ s/\&/\\\\\\amp;/g; + $contents =~ s/\</\\\\\\lt;/g; + $contents =~ s/\>/\\\\\\gt;/g; dump_section($section, $contents); $section = $section_default; $contents = ""; |