Re: kernel-doc bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13:35-20130304, Randy Dunlap wrote:
> On 03/04/13 13:29, Nishanth Menon wrote:
> Yes, I have been aware of it for quite some time but I haven't
> made a patch for it yet.  If you come up with a patch, that would be great.
I kind of gave it a shot, but no viable solution yet for the 10-20 mins
I spend on trying it out.
[1] obviously wreaks havoc with function pointers - so no go there.
The solution seems to be somewhere in create_parameterlist but I have'nt
yet had any luck there either :(

-- 
Regards,
Nishanth Menon

[1]
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 4305b2f..d920fbe 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -2123,6 +2123,13 @@ sub dump_function($$) {
 	$declaration_name = $2;
 	my $args = $3;
 
+	# cleanup parameters
+	# remove array definitions
+	$args =~ s/\[.+\]//gos;
+	# remove casts
+	$args =~ s/\((.+)\)/\1/gos;
+	# remove pointers
+	$args =~ s/\s\s*\*/ /g;
 	create_parameterlist($args, ',', $file);
     } else {
 	print STDERR "Error(${file}:$.): cannot understand prototype: '$prototype'\n";
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux