kernel-doc (262d9b0130edf9aef1819b211d69f48883d2ac10) kernel-doc (328d24403d6a6b856722facd39d7b6ccb429353b)
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## ##

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

1542 $prototype =~ s/^asmlinkage +//;
1543 $prototype =~ s/^inline +//;
1544 $prototype =~ s/^__inline__ +//;
1545 $prototype =~ s/^__inline +//;
1546 $prototype =~ s/^__always_inline +//;
1547 $prototype =~ s/^noinline +//;
1548 $prototype =~ s/__devinit +//;
1549 $prototype =~ s/^#define\s+//; #ak added
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## ##

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

1542 $prototype =~ s/^asmlinkage +//;
1543 $prototype =~ s/^inline +//;
1544 $prototype =~ s/^__inline__ +//;
1545 $prototype =~ s/^__inline +//;
1546 $prototype =~ s/^__always_inline +//;
1547 $prototype =~ s/^noinline +//;
1548 $prototype =~ s/__devinit +//;
1549 $prototype =~ s/^#define\s+//; #ak added
1550 $prototype =~ s/__attribute__ \(\([a-z,]*\)\)//;
1550 $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
1551
1552 # Yes, this truly is vile. We are looking for:
1553 # 1. Return type (may be nothing if we're looking at a macro)
1554 # 2. Function name
1555 # 3. Function parameters.
1556 #
1557 # All the while we have to watch out for function pointer parameters
1558 # (which IIRC is what the two sections are for), C types (these

--- 379 unchanged lines hidden ---
1551
1552 # Yes, this truly is vile. We are looking for:
1553 # 1. Return type (may be nothing if we're looking at a macro)
1554 # 2. Function name
1555 # 3. Function parameters.
1556 #
1557 # All the while we have to watch out for function pointer parameters
1558 # (which IIRC is what the two sections are for), C types (these

--- 379 unchanged lines hidden ---