kernel-doc (e199e6136ce6b151e6638ae93dca60748424d900) | kernel-doc (1f3a66889c4c80c821f3eadf899c140e91452f8e) |
---|---|
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-2009 Randy Dunlap ## --- 1665 unchanged lines hidden (view full) --- 1674 my ($px, $sx); 1675 my $prm_clean; # strip trailing "[array size]" and/or beginning "*" 1676 1677 foreach $sx (0 .. $#sects) { 1678 $err = 1; 1679 foreach $px (0 .. $#prms) { 1680 $prm_clean = $prms[$px]; 1681 $prm_clean =~ s/\[.*\]//; | 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-2009 Randy Dunlap ## --- 1665 unchanged lines hidden (view full) --- 1674 my ($px, $sx); 1675 my $prm_clean; # strip trailing "[array size]" and/or beginning "*" 1676 1677 foreach $sx (0 .. $#sects) { 1678 $err = 1; 1679 foreach $px (0 .. $#prms) { 1680 $prm_clean = $prms[$px]; 1681 $prm_clean =~ s/\[.*\]//; |
1682 $prm_clean =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//; | 1682 $prm_clean =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i; |
1683 # ignore array size in a parameter string; 1684 # however, the original param string may contain 1685 # spaces, e.g.: addr[6 + 2] 1686 # and this appears in @prms as "addr[6" since the 1687 # parameter list is split at spaces; 1688 # hence just ignore "[..." for the sections check; 1689 $prm_clean =~ s/\[.*//; 1690 --- 543 unchanged lines hidden --- | 1683 # ignore array size in a parameter string; 1684 # however, the original param string may contain 1685 # spaces, e.g.: addr[6 + 2] 1686 # and this appears in @prms as "addr[6" since the 1687 # parameter list is split at spaces; 1688 # hence just ignore "[..." for the sections check; 1689 $prm_clean =~ s/\[.*//; 1690 --- 543 unchanged lines hidden --- |