From 2d7010fe3ee27ffaf042ce7aeaa424d05a64a981 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 20 May 2004 23:21:21 -0700 Subject: [PATCH] trivial: scripts_kernel-doc should strip comments inside structs' From: Rusty Russell From: Long block comment before declaration moves it out of page in pdfs. Alexey $ ./linux-2.6.6-rc2/scripts/kernel-doc.orig -text test.c struct stuff: struct stuff { int a; /** comment here*/char b; }; Members: a aaaa b bbbbb Description: stuff $ ./linux-2.6.6-rc2/scripts/kernel-doc -text test.c struct stuff: struct stuff { int a; char b; }; Members: a aaaa b bbbbb Description: stuff --- scripts/kernel-doc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 945a28bdedbd..a331dfdb209f 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1304,6 +1304,8 @@ sub create_parameterlist($$$) { } foreach my $arg (split($splitter, $args)) { + # strip comments + $arg =~ s/\/\*.*\*\///; # strip leading/trailing spaces $arg =~ s/^\s*//; $arg =~ s/\s*$//; -- cgit v1.2.3