From 222bd8934b0a658592bec2bbb34a5f318536c5c7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 12 Nov 2004 19:36:51 +0000 Subject: [PATCH] Support longer page numbers in "pr", and allow most file names starting with "+". --- ChangeLog | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index 54eb08e5b5..336287d811 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,22 @@ +2004-11-12 Paul Eggert + + * NEWS: Document the following change. + * src/pr.c (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 + , + 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. + 2004-11-07 Jim Meyering * Version 5.3.0. -- 2.47.2