summaryrefslogtreecommitdiff
path: root/src/pr.c
AgeCommit message (Collapse)Author
2001-08-13(AUTHORS): Mark string for translation, since it contains the English word ↵Jim Meyering
`and'.
2001-03-17Include mbswidth.h.Jim Meyering
(standard_header, header, test_suite): Remove. (date_format, date_text, file_text, header_width_available): New vars. (long_options, main, init_header, usage): Add new -D or --date-format option. (CHARS_FOR_DATE_AND_PAGE, T_BUF_FMT, T_BUF_SIZE, NO_DATE): Remove. (init_header): Allow arbitrary width for date format. Change "Page %5d" to "Page %d", since the code no longer assumes fixed width. Do not assume that localtime succeeds. (init_header, print_header, usage): Do not truncate headers. (init_header, print_header): Defer width calculations until page is printed, since "Page 100000" is wider than "Page 1". Count columns, not bytes, in page headers. Custom headers take up only the center, not the whole header. (print_header): Use printf rather than fprintf(stdout).
2000-11-19(main): Do not assume EOF == -1.Jim Meyering
Handle the case correctly when digits options immediately precede a non-option.
2000-08-05(init_header): Fix buffer-overrun error.Jim Meyering
Allocated buffer was sometimes too small. Reported by Greg McGary (who found this bug using his bounded-pointers-enabled gcc). (init_header): Move declarations of several variables into the inner scope where they are used.
2000-08-04(store_columns): Remove conjunct that would dereferenceJim Meyering
an out-of-bounds pointer. Reported by Greg McGary (who found this bug using his bounded-pointers-enabled gcc).
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
2000-01-08(PAGES_OPTION, COLUMNS_OPTION): Define these and use them instead ofJim Meyering
`CHAR_MAX + n'.
1999-08-22(read_line): Use IF_LINT macro instead of #ifdef lint...Jim Meyering
1999-07-25(usage): Remove `NEWS'-style paragraph (sorry to have let that in, translators).Jim Meyering
1999-05-04(usage): Break the usage message into 3 pieces instead ofJim Meyering
only 2. The strings had grown to be longer than 2048, which evokes errors when compiling with Irix4's cc.
1999-04-15Add comments.Jim Meyering
(init_header): Tweak white space in Date/Time header.
1999-04-04Add case_GETOPT_* cases.Jim Meyering
1999-04-04Standardize --help and --version processing.Jim Meyering
1999-04-03Use AUTHORS in place of string in parse_long_options call.Jim Meyering
1999-04-03Insert AUTHORS definition.Jim Meyering
1999-04-03Use PROGRAM_NAME in place of string in parse_long_options call.Jim Meyering
1999-04-03define PROGRAM_NAMEJim Meyering
1999-03-07(usage): Add missing \n\.Jim Meyering
1999-03-07remove trailing blanksJim Meyering
1999-03-071999-02-13 Roland Huebner <rh@pelikan.cologne.de>Jim Meyering
* src/pr.c (main): Redefine options -s, -w to be POSIX compliant; introduce new options -J, -S, -W to disentangle -s and -w when used together with the three column options; (add_line_number): Make POSIX compliant; use default number separator TAB with single column output. (add_line_number): Make POSIX compliant; with multicolumn output now prefer `text columns of equal width' rather than a consequent use of `default n-separator TAB'. (add_line_number): Change line number cut-off from lower-oder to higher-oder digit to avoid loss of information; no consequent handling exists in different utilities and other UNIXes. (char_to_clump): Expand input text tabs to 8 spaces, if input_tab_char doesn't equal TAB (adapted to other UNIXes). (usage): Update POSIX compliant options -s, -w; add new options -J, -S, -W. (main): Update the source internal documentation. Some smaller BUGFIXES (print_sep_string, init_header, skip_to_page, reset_status, print_header).
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-14Don't prototype usage as static.Jim Meyering
1999-01-01fix typo in commentJim Meyering
1998-09-19update bug-reporting addressJim Meyering
1998-08-30Don't assume ASCII.Jim Meyering
1998-08-15(usage): Reformat a little.Jim Meyering
1998-08-15(long_options): Add long names for all options.Jim Meyering
(usage): Update help string. (main): Handle the special options --pages and --columns.
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1998-06-27(print_page): Break out of loop before double space testJim Meyering
if cols_ready_to_print is zero.
1998-04-12Use STREQ rather than strcmpJim Meyering
1998-01-10CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAXJim Meyering
Remove definitions of those symbols. * src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h since it now includes limit.h which defines RE_DUP_MAX. * src/nl.c: Likewise. * src/tac.c: Likewise.
1997-12-21s/__P/PARAMS/Jim Meyering
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-06-15(init_header) [T_BUF_FMT]: Output the 4-digit year (not theJim Meyering
2-digit abbreviation) in each page header. Reported by Noah Friedman.
1997-03-14(main): Allow use of 0 (zero) as the margin offsetJim Meyering
argument to the -o option. Patch from Gary Anderson.
1997-02-09update copyrights for 1997Jim Meyering
1997-02-01(init_parameters): For compatibility: use defaultJim Meyering
separator `TAB' with full length lines. From Roland Huebner.
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01(add_line_number): Rename from `number' to avoid shadowing local variables.Jim Meyering
1997-01-25update for changed xstrtou?lJim Meyering
1997-01-03(init_fps): Initialize lines_stored field in three places.Jim Meyering
This avoids uninitialized memory reads in close_file.
1996-12-30(init_header): Plug a small memory leak by using stackJim Meyering
rather than heap for a 15-byte temporary buffer.
1996-12-28(TAB_WIDTH): Cleaned up definition and renamed from tab_width.Jim Meyering
(POS_AFTER_TAB): Cleaned up definition and renamed from pos_after_tab.
1996-12-28(usage): Break long string literal into two separateJim Meyering
printf statements to accomodate default maximum of 2048 characters for Irix-4.0.5. Reported by Kaveh Ghazi.
1996-12-07(init_header): Fix typo: `cons tchar' -> `const char'. From Roland.Jim Meyering
1996-12-05(init_store_cols): Put parens around ... ? ... : ... expr.Jim Meyering
1996-12-05Use NULL instead of e.g., `(char *) 0'.Jim Meyering