Enums benefit from private markings, too. For netlink attribute name enums always end with a pair of __$n_MAX and $n_MAX members. Documenting them feels a bit tedious.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -1301,6 +1301,9 @@ sub dump_enum($$) { · 1300 unmodified lines | |||
| 1301 | my $file = shift; | 1301 | my $file = shift; |
| 1302 | my $members; | 1302 | my $members; |
| 1303 | 1303 | ||
| 1304 | # ignore members marked private: | ||
| 1305 | $x =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gosi; | ||
| 1306 | $x =~ s/\/\*\s*private:.*}/}/gosi; | ||
| 1304 | 1307 | ||
| 1305 | $x =~ s@/\*.*?\*/@@gos; # strip comments. | 1308 | $x =~ s@/\*.*?\*/@@gos; # strip comments. |
| 1306 | # strip #define macros inside enums | 1309 | # strip #define macros inside enums |