kernel-doc (bf61c8840efe60fd8f91446860b63338fb424158) kernel-doc (9645ae84ef52d61bc48732a25e57554fc1a9754a)
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 ##

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

2120 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2121 $prototype =~ m/^(\w+\s+\w+\s*\*\s*\w+\s*\*\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
2122 $return_type = $1;
2123 $declaration_name = $2;
2124 my $args = $3;
2125
2126 create_parameterlist($args, ',', $file);
2127 } else {
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 ##

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

2120 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2121 $prototype =~ m/^(\w+\s+\w+\s*\*\s*\w+\s*\*\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
2122 $return_type = $1;
2123 $declaration_name = $2;
2124 my $args = $3;
2125
2126 create_parameterlist($args, ',', $file);
2127 } else {
2128 print STDERR "Error(${file}:$.): cannot understand prototype: '$prototype'\n";
2129 ++$errors;
2128 print STDERR "Warning(${file}:$.): cannot understand function prototype: '$prototype'\n";
2130 return;
2131 }
2132
2133 my $prms = join " ", @parameterlist;
2134 check_sections($file, $declaration_name, "function", $sectcheck, $prms, "");
2135
2136 # This check emits a lot of warnings at the moment, because many
2137 # functions don't have a 'Return' doc section. So until the number

--- 467 unchanged lines hidden ---
2129 return;
2130 }
2131
2132 my $prms = join " ", @parameterlist;
2133 check_sections($file, $declaration_name, "function", $sectcheck, $prms, "");
2134
2135 # This check emits a lot of warnings at the moment, because many
2136 # functions don't have a 'Return' doc section. So until the number

--- 467 unchanged lines hidden ---