kernel-doc (e3900e74f26fc924c8e9e2a922bd40369b0bb517) kernel-doc (9dc30918b23f4b0d7f7f81be5bda023aea3f6627)
1#!/usr/bin/perl -w
2
3use strict;
4
5## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
6## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##
7## Copyright (C) 2001 Simon Huggins ##
8## Copyright (C) 2005-2012 Randy Dunlap ##

--- 1736 unchanged lines hidden (view full) ---

1745 $members =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gos;
1746 $members =~ s/\/\*\s*private:.*//gos;
1747 # strip comments:
1748 $members =~ s/\/\*.*?\*\///gos;
1749 $nested =~ s/\/\*.*?\*\///gos;
1750 # strip kmemcheck_bitfield_{begin,end}.*;
1751 $members =~ s/kmemcheck_bitfield_.*?;//gos;
1752 # strip attributes
1#!/usr/bin/perl -w
2
3use strict;
4
5## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
6## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##
7## Copyright (C) 2001 Simon Huggins ##
8## Copyright (C) 2005-2012 Randy Dunlap ##

--- 1736 unchanged lines hidden (view full) ---

1745 $members =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gos;
1746 $members =~ s/\/\*\s*private:.*//gos;
1747 # strip comments:
1748 $members =~ s/\/\*.*?\*\///gos;
1749 $nested =~ s/\/\*.*?\*\///gos;
1750 # strip kmemcheck_bitfield_{begin,end}.*;
1751 $members =~ s/kmemcheck_bitfield_.*?;//gos;
1752 # strip attributes
1753 $members =~ s/__aligned\s*\(\d+\)//gos;
1753 $members =~ s/__aligned\s*\(.+\)//gos;
1754
1755 create_parameterlist($members, ';', $file);
1756 check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);
1757
1758 output_declaration($declaration_name,
1759 'struct',
1760 {'struct' => $declaration_name,
1761 'module' => $modulename,

--- 312 unchanged lines hidden (view full) ---

2074 $prototype =~ s/^static +//;
2075 $prototype =~ s/^extern +//;
2076 $prototype =~ s/^asmlinkage +//;
2077 $prototype =~ s/^inline +//;
2078 $prototype =~ s/^__inline__ +//;
2079 $prototype =~ s/^__inline +//;
2080 $prototype =~ s/^__always_inline +//;
2081 $prototype =~ s/^noinline +//;
1754
1755 create_parameterlist($members, ';', $file);
1756 check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);
1757
1758 output_declaration($declaration_name,
1759 'struct',
1760 {'struct' => $declaration_name,
1761 'module' => $modulename,

--- 312 unchanged lines hidden (view full) ---

2074 $prototype =~ s/^static +//;
2075 $prototype =~ s/^extern +//;
2076 $prototype =~ s/^asmlinkage +//;
2077 $prototype =~ s/^inline +//;
2078 $prototype =~ s/^__inline__ +//;
2079 $prototype =~ s/^__inline +//;
2080 $prototype =~ s/^__always_inline +//;
2081 $prototype =~ s/^noinline +//;
2082 $prototype =~ s/__devinit +//;
2083 $prototype =~ s/__init +//;
2084 $prototype =~ s/__init_or_module +//;
2085 $prototype =~ s/__must_check +//;
2086 $prototype =~ s/__weak +//;
2087 $prototype =~ s/^#\s*define\s+//; #ak added
2088 $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
2089
2090 # Yes, this truly is vile. We are looking for:

--- 515 unchanged lines hidden ---
2082 $prototype =~ s/__init +//;
2083 $prototype =~ s/__init_or_module +//;
2084 $prototype =~ s/__must_check +//;
2085 $prototype =~ s/__weak +//;
2086 $prototype =~ s/^#\s*define\s+//; #ak added
2087 $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
2088
2089 # Yes, this truly is vile. We are looking for:

--- 515 unchanged lines hidden ---