lkml.org 
[lkml]   [2000]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectkernel-doc minor fix

Hi

inline docs are not generated for functions which return a 'const'
because this modifier is not checked for (only inline extern and static)
when verifying the function prototype.
This patch fixes it and hopefully doesn't break anything else(I am
Perl----)

Jani.

--- /usr/src/linux/scripts/kernel-doc Tue Dec 12 11:25:59 2000
+++ kernel-doc Sat Dec 16 15:53:17 2000
@@ -664,10 +664,11 @@

##
# takes a function prototype and spits out all the details
-# stored in the global arrays/hsahes.
+# stored in the global arrays/hashes.
sub dump_function {
my $prototype = shift @_;

+ $prototype =~ s/^const+ //;
$prototype =~ s/^static+ //;
$prototype =~ s/^extern+ //;
$prototype =~ s/^inline+ //;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.035 / U:1.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site