kernel-doc (9f6f4c110c95a96942004547c84ab22384d9e723) | kernel-doc (8e93cb78a4f68c3c3c718e5388f0593227101393) |
---|---|
1#!/usr/bin/env perl 2# SPDX-License-Identifier: GPL-2.0 3# vim: softtabstop=4 4 5use warnings; 6use strict; 7 8## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ## --- 1314 unchanged lines hidden (view full) --- 1323 my $members; 1324 1325 # ignore members marked private: 1326 $x =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gosi; 1327 $x =~ s/\/\*\s*private:.*}/}/gosi; 1328 1329 $x =~ s@/\*.*?\*/@@gos; # strip comments. 1330 # strip #define macros inside enums | 1#!/usr/bin/env perl 2# SPDX-License-Identifier: GPL-2.0 3# vim: softtabstop=4 4 5use warnings; 6use strict; 7 8## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ## --- 1314 unchanged lines hidden (view full) --- 1323 my $members; 1324 1325 # ignore members marked private: 1326 $x =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gosi; 1327 $x =~ s/\/\*\s*private:.*}/}/gosi; 1328 1329 $x =~ s@/\*.*?\*/@@gos; # strip comments. 1330 # strip #define macros inside enums |
1331 $x =~ s@#\s*((define|ifdef)\s+|endif)[^;]*;@@gos; | 1331 $x =~ s@#\s*((define|ifdef|if)\s+|endif)[^;]*;@@gos; |
1332 1333 if ($x =~ /typedef\s+enum\s*\{(.*)\}\s*(\w*)\s*;/) { 1334 $declaration_name = $2; 1335 $members = $1; 1336 } elsif ($x =~ /enum\s+(\w*)\s*\{(.*)\}/) { 1337 $declaration_name = $1; 1338 $members = $2; 1339 } --- 1202 unchanged lines hidden --- | 1332 1333 if ($x =~ /typedef\s+enum\s*\{(.*)\}\s*(\w*)\s*;/) { 1334 $declaration_name = $2; 1335 $members = $1; 1336 } elsif ($x =~ /enum\s+(\w*)\s*\{(.*)\}/) { 1337 $declaration_name = $1; 1338 $members = $2; 1339 } --- 1202 unchanged lines hidden --- |