Commit Graph
22888 Commits
Author SHA1 Message Date
Jim Meyering 236c02759b Make parameters const where appropriate.
Rename global FROM to START.
(print_numbers): Rewrite loops to avoid incrementing.  Instead,
use `x = first + i * increment' paradigm.  Otherwise, with inexact
increment, you could miss the last value.
1996-03-24 17:50:09 +00:00
Jim Meyering 777948e773 Protoize and reorder functions. 1996-03-24 17:43:41 +00:00
Jim Meyering 6e45576dd6 (main): Reformat if-block a little.
Declare index I to be of type size_t to avoid warning from gcc -Wall.
1996-03-24 17:21:40 +00:00
Jim Meyering 2bc35b0348 . 1996-03-24 16:59:29 +00:00
Jim Meyering 818d29db9b Call error with EXIT_FAILURE (rather than `1') as first actual parameter. 1996-03-24 16:59:11 +00:00
Jim Meyering 47f70113d4 Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
This doesn't change `error (1' calls.
1996-03-24 14:58:01 +00:00
Jim Meyering 2fa0c16e5e . 1996-03-24 05:15:00 +00:00
Jim Meyering 8060afb088 . 1996-03-24 02:31:39 +00:00
Jim Meyering a1bc39d130 . 1996-03-24 02:26:30 +00:00
Jim Meyering e6fae6c23f [SORT_FAILURE]: New macro.
Be careful to exit with 1 only when -c is used and the
input is not properly sorted.  In all other cases, use
SORT_FAILURE as required by POSIX.
(main): Change some `error (1, ...' to use SORT_FAILURE.
Upon successful termination, exit with EXIT_SUCCESS instead of `0'.
Replace all uses of `2' (as exit code) with SORT_FAILURE.
1996-03-24 02:26:21 +00:00
Jim Meyering adb160df0f . 1996-03-24 02:20:06 +00:00
Jim Meyering 74a776f9ae . 1996-03-24 02:19:39 +00:00
Jim Meyering 12ea18c68d . 1996-03-24 02:19:31 +00:00
Jim Meyering f870ecb4a6 . 1996-03-22 04:57:19 +00:00
Jim Meyering 6d6bfafbdd . 1996-03-22 04:55:00 +00:00
Jim Meyering 7178674807 Include assert.h, but disable assertions.
(process_line_count): Replace if-abort with a slightly relaxed
assertion.  Before, `echo |csplit - 1 1' would abort.
Reported by Samuli.Karkkainen@hut.fi.
(parse_patterns): Disallow uses like `csplit FILE 0' with zero
line number, `csplit FILE 2 1' with decreasing line numbers, and
warn about uses like `csplit FILE 3 3' that have equal line numbers.
1996-03-22 04:54:46 +00:00
Jim Meyering 1954f681c6 (main): Declare to be of type int, not void. 1996-03-21 22:47:02 +00:00
Jim Meyering bb6a548712 (main): Declare to be of type int, not void. 1996-03-21 22:45:19 +00:00
Jim Meyering 403816eb85 . 1996-03-21 22:43:38 +00:00
Jim Meyering adb7c216b2 (main): Declare to be of type int, not void. 1996-03-21 22:41:04 +00:00
Jim Meyering 92d78458e0 . 1996-03-21 13:00:25 +00:00
Jim Meyering dd5db06467 (main): Declare to return int, not void. From Peter Seebach
<seebs@taniemarie.solon.com>.
1996-03-21 13:00:15 +00:00
Jim Meyering b13e6b03cc . 1996-03-18 05:52:07 +00:00
Jim Meyering a2b8387b70 . 1996-03-16 22:37:33 +00:00
Jim Meyering 4229a555fc Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 22:30:54 +00:00
Jim Meyering 688833b80e . 1996-03-16 16:54:48 +00:00
Jim Meyering ca0246a4c1 Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:49:28 +00:00
Jim Meyering c1cdafa1b4 Change @VERSION@ to @PKG_VERSION@. 1996-03-16 16:41:36 +00:00
Jim Meyering ed960988ee . 1996-03-16 16:14:50 +00:00
Jim Meyering 3ee97d4d5b Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:14:26 +00:00
Jim Meyering b34f300eaf . 1996-03-16 05:44:09 +00:00
Jim Meyering 2e5cc5e04e (read_utmp): Declare n_read to be of type size_t rather than int. 1996-03-16 05:44:02 +00:00
Jim Meyering 182c784a99 (validate_path): Cast path_max to size_t before
comparing with strlen(path).
1996-03-16 05:43:24 +00:00
Jim Meyering b14b621029 Remove __P-protected prototype for basename.
Reported by François Pinard.
(remove_suffix): Move to precede use.  Remove prototype.
Declare formal parameter SUFFIX to be const.
1996-03-16 05:42:53 +00:00
Jim Meyering 8825dba4e7 . 1996-03-14 05:21:43 +00:00
Jim Meyering 9922b56ffb add ## comment on first line 1996-03-14 05:15:16 +00:00
Jim Meyering 6681674e3c (EXTRA_DIST): Renamed form DIST_OTHER. 1996-03-14 05:05:22 +00:00
Jim Meyering 99f35e8204 . 1996-03-14 04:52:29 +00:00
Jim Meyering c46f149efd . TEXTUTILS-1_14a 1996-03-13 05:24:33 +00:00
Jim Meyering 644d185dea . SH-UTILS-1_12d 1996-03-13 05:13:52 +00:00
Jim Meyering 6fc4ae7a28 (main): Initialize for internationalized message support:
call setlocale, bindtextdomain, and textdomain.
1996-03-12 23:49:29 +00:00
Jim Meyering 3f92a4421a . 1996-03-12 04:20:57 +00:00
Jim Meyering 7a4a5dd66c . FILEUTILS-3_12j 1996-03-12 04:14:47 +00:00
Jim Meyering fe456215a6 [_]: Don't define this away. 1996-03-12 04:02:07 +00:00
Jim Meyering 65957278ab . 1996-03-12 04:01:04 +00:00
Jim Meyering 6f2e1d1ce2 (max_backup_version): Declare file_name_length to be of type size_t. 1996-03-12 03:58:25 +00:00
Jim Meyering 51078dff7f . 1996-03-12 03:35:21 +00:00
Jim Meyering 03824c9e29 . 1996-03-12 03:29:57 +00:00
Jim Meyering 10c96c43ac (main): Initialize for internationalized message support: call setlocale,
bindtextdomain, and textdomain.
1996-03-12 03:08:30 +00:00
Jim Meyering 8e8fd5439a Add definitions and includes for NLS. 1996-03-12 03:06:47 +00:00