]> Git Repo - linux.git/commitdiff
kernel-doc: skip nested struct/union cleanly
authorRandy Dunlap <[email protected]>
Tue, 5 Aug 2008 20:01:32 +0000 (13:01 -0700)
committerLinus Torvalds <[email protected]>
Tue, 5 Aug 2008 21:33:49 +0000 (14:33 -0700)
Fix handling of nested structs or unions.  The regex to strip (eliminate)
nested structs or unions was limited to only 0 or 1 matches.  This can
cause an uneven number of left/right braces to be stripped, which causes
this:

Warning(linux-2.6.27-rc1-git2//include/net/mac80211.h:336): No description found for parameter '}'

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/kernel-doc

index d8f77e26081c230a3bc489f5c773950cab3b10d3..ff787e6ff8edcbef0edc7fbfaef7f3d088f930a0 100755 (executable)
@@ -1403,7 +1403,7 @@ sub dump_struct($$) {
        my $members = $3;
 
        # ignore embedded structs or unions
-       $members =~ s/{.*?}//g;
+       $members =~ s/{.*}//g;
 
        # ignore members marked private:
        $members =~ s/\/\*.*?private:.*?public:.*?\*\///gos;
This page took 0.05362 seconds and 4 git commands to generate.