diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-29 06:12:44 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-07-29 06:12:44 +0000 |
commit | 0bdefc2dcac212da26e27a06eb45e73f005fa82a (patch) | |
tree | 51fdb44e25ae1398cf0d5b99f0057c8b447bbd39 | |
parent | 69da9561c769e91ebe170b8b08e132caaa3b6e85 (diff) | |
download | coreutils-0bdefc2dcac212da26e27a06eb45e73f005fa82a.tar.xz |
'int' cleanup for "cat".
-rw-r--r-- | ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,5 +1,20 @@ 2004-07-28 Paul Eggert <eggert@cs.ucla.edu> + * src/cat.c (exit_status): Remove. Now done by passing a boolean + 'ok' flag around. + (simple_cat, cat): Return true if successful. All callers changed. + (simple_cat, cat, main): Use bool for booleans. + (simple_cat): Use size_t for sizes. + (cat, main): Use the same names for parameters that we use for + long options, to avoid confusion. This inverts the sense of the + show_tabs (formerly output_tabs) and number_nonblank + (formerly numbers_at_empty_lines) variables. + (main): Don't mess up (due to integer overflow) if we are given + INT_MAX - INT_MIN + 1 options. + [O_BINARY]: Don't invoke isatty unless the other options require it. + (main): When deciding whether to use simple_cat, don't worry + about binary option; it's irrelevant. + * src/dcgen: Remove comments, trailing white space, and empty lines from the output strings, to save space. Use a narrower type like 'unsigned char' for line lengths, if |