]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(strtoumax): Declare if not declared.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Nov 2004 19:35:54 +0000 (19:35 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Nov 2004 19:35:54 +0000 (19:35 +0000)
commit48eaa738279a07863aec669605cd2416555d9cc4
tree10a9aea0f8dede31e6f08288f77acc641ff9a06d
parent3c530e63c5977e1157fca280328d0ce48d35fc98
(strtoumax): Declare if not declared.
(skip_to_page, first_page_number, last_page_number, page_number,
first_last_page, print_header):
Use uintmax_t for page numbers.
(first_last_page): Remove unnecessary forward declaration.
Do not modify arg (it is now a const pointer).
Return a true if successful, false (without print a diagnostic)
otherwise.
(main): If +XXX does not specify a valid page range, treat it
as a file name.  This follows the response to Open Group XCU ERN 41
<http://www.opengroup.org/sophocles/show_mail.tpl?source=L&listname=austin-group-l&id=7717>,
which says the behavior is allowed.
(skip_to_page): When starting page number exceeds page count,
print both numbers in the diagnostic.
(print_header): Detect page number overflow.
src/pr.c