kernel-doc (02a4f4fe522c29bcd4a61e094f7fe8d64f00ee06) kernel-doc (b1aaa546b52baf7cdc97961e9ba445a26948c1af)
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 ##

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

2501 $prototype =~ s/^__always_inline +//;
2502 $prototype =~ s/^noinline +//;
2503 $prototype =~ s/__init +//;
2504 $prototype =~ s/__init_or_module +//;
2505 $prototype =~ s/__meminit +//;
2506 $prototype =~ s/__must_check +//;
2507 $prototype =~ s/__weak +//;
2508 my $define = $prototype =~ s/^#\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## Copyright (C) 2005-2012 Randy Dunlap ##

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

2501 $prototype =~ s/^__always_inline +//;
2502 $prototype =~ s/^noinline +//;
2503 $prototype =~ s/__init +//;
2504 $prototype =~ s/__init_or_module +//;
2505 $prototype =~ s/__meminit +//;
2506 $prototype =~ s/__must_check +//;
2507 $prototype =~ s/__weak +//;
2508 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
2509 $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
2509 $prototype =~ s/__attribute__\s*\(\(
2510 (?:
2511 [\w\s]++ # attribute name
2512 (?:\([^)]*+\))? # attribute arguments
2513 \s*+,? # optional comma at the end
2514 )+
2515 \)\)\s+//x;
2510
2511 # Yes, this truly is vile. We are looking for:
2512 # 1. Return type (may be nothing if we're looking at a macro)
2513 # 2. Function name
2514 # 3. Function parameters.
2515 #
2516 # All the while we have to watch out for function pointer parameters
2517 # (which IIRC is what the two sections are for), C types (these

--- 640 unchanged lines hidden ---
2516
2517 # Yes, this truly is vile. We are looking for:
2518 # 1. Return type (may be nothing if we're looking at a macro)
2519 # 2. Function name
2520 # 3. Function parameters.
2521 #
2522 # All the while we have to watch out for function pointer parameters
2523 # (which IIRC is what the two sections are for), C types (these

--- 640 unchanged lines hidden ---