History

DocBook: Fix kernel-doc to be case-insensitive for private:

On some places, people could use Private: to tag the private fields of an struct. So, be case-insensitive when parsing "private:" meta-tag.

Mauro Carvalho Chehab committed 11 years ago

Commit 0d8c39e1 parent 1c35c281 file · +2 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kernel-doc+2−2
@@ -1805,8 +1805,8 @@ sub dump_struct($$) { · 1804 unmodified lines
18051805 $nested = $1;
18061806
18071807 # ignore members marked private:
1808− $members =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gos;
1809− $members =~ s/\/\*\s*private:.*//gos;
1808+ $members =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gosi;
1809+ $members =~ s/\/\*\s*private:.*//gosi;
18101810 # strip comments:
18111811 $members =~ s/\/\*.*?\*\///gos;
18121812 $nested =~ s/\/\*.*?\*\///gos;