kernel-doc (2e106e4df28aa264f9ded7e5be3733224f2e4f93) kernel-doc (b2c4105b080fb26d8fc9b89c846f5966137c6d40)
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 ##

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

248my $verbose = 0;
249my $output_mode = "man";
250my $output_preformatted = 0;
251my $no_doc_sections = 0;
252my %highlights = %highlights_man;
253my $blankline = $blankline_man;
254my $modulename = "Kernel API";
255my $function_only = 0;
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 ##

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

248my $verbose = 0;
249my $output_mode = "man";
250my $output_preformatted = 0;
251my $no_doc_sections = 0;
252my %highlights = %highlights_man;
253my $blankline = $blankline_man;
254my $modulename = "Kernel API";
255my $function_only = 0;
256my $show_not_found = 0;
257
258my @build_time;
259if (defined($ENV{'KBUILD_BUILD_TIMESTAMP'}) &&
260 (my $seconds = `date -d"${ENV{'KBUILD_BUILD_TIMESTAMP'}}" +%s`) ne '') {
261 @build_time = gmtime($seconds);
262} else {
263 @build_time = localtime;
264}
265
256my $man_date = ('January', 'February', 'March', 'April', 'May', 'June',
257 'July', 'August', 'September', 'October',
266my $man_date = ('January', 'February', 'March', 'April', 'May', 'June',
267 'July', 'August', 'September', 'October',
258 'November', 'December')[(localtime)[4]] .
259 " " . ((localtime)[5]+1900);
260my $show_not_found = 0;
268 'November', 'December')[$build_time[4]] .
269 " " . ($build_time[5]+1900);
261
262# Essentially these are globals.
263# They probably want to be tidied up, made more localised or something.
264# CAVEAT EMPTOR! Some of the others I localised may not want to be, which
265# could cause "use of undefined value" or other bugs.
266my ($function, %function_table, %parametertypes, $declaration_purpose);
267my ($type, $declaration_name, $return_type);
268my ($newsection, $newcontents, $prototype, $brcount, %source_map);

--- 2351 unchanged lines hidden ---
270
271# Essentially these are globals.
272# They probably want to be tidied up, made more localised or something.
273# CAVEAT EMPTOR! Some of the others I localised may not want to be, which
274# could cause "use of undefined value" or other bugs.
275my ($function, %function_table, %parametertypes, $declaration_purpose);
276my ($type, $declaration_name, $return_type);
277my ($newsection, $newcontents, $prototype, $brcount, %source_map);

--- 2351 unchanged lines hidden ---