kernel-doc (4468e21eed2dd7ee8dc91d94dbd2ccb0d291fb07) kernel-doc (b22b5a9ef5309287b86bac9eb47f17a12671b770)
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 ##

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

1811 $members =~ s/\/\*.*?\*\///gos;
1812 $nested =~ s/\/\*.*?\*\///gos;
1813 # strip kmemcheck_bitfield_{begin,end}.*;
1814 $members =~ s/kmemcheck_bitfield_.*?;//gos;
1815 # strip attributes
1816 $members =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i;
1817 $members =~ s/__aligned\s*\([^;]*\)//gos;
1818 $members =~ s/\s*CRYPTO_MINALIGN_ATTR//gos;
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 ##

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

1811 $members =~ s/\/\*.*?\*\///gos;
1812 $nested =~ s/\/\*.*?\*\///gos;
1813 # strip kmemcheck_bitfield_{begin,end}.*;
1814 $members =~ s/kmemcheck_bitfield_.*?;//gos;
1815 # strip attributes
1816 $members =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i;
1817 $members =~ s/__aligned\s*\([^;]*\)//gos;
1818 $members =~ s/\s*CRYPTO_MINALIGN_ATTR//gos;
1819 # replace DECLARE_BITMAP
1820 $members =~ s/DECLARE_BITMAP\s*\(([^,)]+), ([^,)]+)\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos;
1819
1820 create_parameterlist($members, ';', $file);
1821 check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);
1822
1823 output_declaration($declaration_name,
1824 'struct',
1825 {'struct' => $declaration_name,
1826 'module' => $modulename,

--- 920 unchanged lines hidden ---
1821
1822 create_parameterlist($members, ';', $file);
1823 check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);
1824
1825 output_declaration($declaration_name,
1826 'struct',
1827 {'struct' => $declaration_name,
1828 'module' => $modulename,

--- 920 unchanged lines hidden ---