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

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

2404 # this fixes a problem where check_sections() cannot find
2405 # a parameter like "addr[6 + 2]" because it actually appears
2406 # as "addr[6", "+", "2]" on the parameter list;
2407 # but it's better to maintain the param string unchanged for output,
2408 # so just weaken the string compare in check_sections() to ignore
2409 # "[blah" in a parameter string;
2410 ###$param =~ s/\s*//g;
2411 push @parameterlist, $param;
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 ##

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

2404 # this fixes a problem where check_sections() cannot find
2405 # a parameter like "addr[6 + 2]" because it actually appears
2406 # as "addr[6", "+", "2]" on the parameter list;
2407 # but it's better to maintain the param string unchanged for output,
2408 # so just weaken the string compare in check_sections() to ignore
2409 # "[blah" in a parameter string;
2410 ###$param =~ s/\s*//g;
2411 push @parameterlist, $param;
2412 $type =~ s/\s\s+/ /g;
2412 $parametertypes{$param} = $type;
2413}
2414
2415sub check_sections($$$$$$) {
2416 my ($file, $decl_name, $decl_type, $sectcheck, $prmscheck, $nested) = @_;
2417 my @sects = split ' ', $sectcheck;
2418 my @prms = split ' ', $prmscheck;
2419 my $err;

--- 737 unchanged lines hidden ---
2413 $parametertypes{$param} = $type;
2414}
2415
2416sub check_sections($$$$$$) {
2417 my ($file, $decl_name, $decl_type, $sectcheck, $prmscheck, $nested) = @_;
2418 my @sects = split ' ', $sectcheck;
2419 my @prms = split ' ', $prmscheck;
2420 my $err;

--- 737 unchanged lines hidden ---