kernel-doc (f624adef3d0b9975076c1ba7549b81ed19e34437) | kernel-doc (32217761ee9db0215350dfe1ca4e66f312fb8c54) |
---|---|
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 ## --- 510 unchanged lines hidden (view full) --- 519 } elsif ($name eq "@\.\.\.") { 520# print STDERR "parameter def '...' = '$contents'\n"; 521 $name = "..."; 522 $parameterdescs{$name} = $contents; 523 $sectcheck = $sectcheck . $name . " "; 524 } else { 525# print STDERR "other section '$name' = '$contents'\n"; 526 if (defined($sections{$name}) && ($sections{$name} ne "")) { | 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 ## --- 510 unchanged lines hidden (view full) --- 519 } elsif ($name eq "@\.\.\.") { 520# print STDERR "parameter def '...' = '$contents'\n"; 521 $name = "..."; 522 $parameterdescs{$name} = $contents; 523 $sectcheck = $sectcheck . $name . " "; 524 } else { 525# print STDERR "other section '$name' = '$contents'\n"; 526 if (defined($sections{$name}) && ($sections{$name} ne "")) { |
527 print STDERR "${file}:$.: error: duplicate section name '$name'\n"; 528 ++$errors; | 527 print STDERR "${file}:$.: warning: duplicate section name '$name'\n"; 528 ++$warnings; 529 $sections{$name} .= $contents; 530 } else { 531 $sections{$name} = $contents; 532 push @sectionlist, $name; |
529 } | 533 } |
530 $sections{$name} = $contents; 531 push @sectionlist, $name; | |
532 } 533} 534 535## 536# dump DOC: section after checking that it should go out 537# 538sub dump_doc_section { 539 my $file = shift; --- 2517 unchanged lines hidden --- | 534 } 535} 536 537## 538# dump DOC: section after checking that it should go out 539# 540sub dump_doc_section { 541 my $file = shift; --- 2517 unchanged lines hidden --- |