]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(exit_status): Remove. Now done by passing a boolean
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Jul 2004 06:12:27 +0000 (06:12 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Jul 2004 06:12:27 +0000 (06:12 +0000)
commit69da9561c769e91ebe170b8b08e132caaa3b6e85
tree871b1f0f31cff15a8925ab7434819ea452026f6b
parentb61e6bc352ccea108e8892eb08d33dc68231a6fe
(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/cat.c