Commit Graph

1656 Commits

Author SHA1 Message Date
Jim Meyering 38457c3dac . 1996-03-28 06:18:24 +00:00
Jim Meyering fee163dd57 Move usage to precede main.
Say `too few arguments' if that's why we display usage.
Protoize.
Include error.h.
Update copyright.
1996-03-28 06:17:34 +00:00
Jim Meyering f954f74302 . 1996-03-28 06:14:59 +00:00
Jim Meyering 0271d97259 from Roland 1996-03-28 05:42:56 +00:00
Jim Meyering 9cb8617078 . 1996-03-28 05:35:48 +00:00
Jim Meyering 7c5f9f7faa (cksum): Use format "%lu %ld" (instead of "%10lu %8ld")
to be POSIX compliant.  From Stephen Gildea <gildea@x.org>.
1996-03-28 05:35:31 +00:00
Jim Meyering 053855b040 . 1996-03-26 05:46:05 +00:00
Jim Meyering a5b5719d3b Document and example --rfc.
Document %z and %Z.
1996-03-26 05:44:03 +00:00
Jim Meyering 01b69091e2 . 1996-03-24 18:50:47 +00:00
Jim Meyering d30fa5d58e . 1996-03-24 18:49:38 +00:00
Jim Meyering b54cd94fe7 . 1996-03-24 18:48:25 +00:00
Jim Meyering 5de0b392f2 Update FSF's address. 1996-03-24 18:47:09 +00:00
Jim Meyering 3613700a38 Update FSF's address. 1996-03-24 18:40:53 +00:00
Jim Meyering 318a497768 Update FSF's address. 1996-03-24 18:33:12 +00:00
Jim Meyering 7b428cdeda . 1996-03-24 18:23:44 +00:00
Jim Meyering b28595b502 . 1996-03-24 18:20:25 +00:00
Jim Meyering f9714aa24d Include xstrtod.h.
(scan_double_arg): Use xstrtod rather than strtod directly.
1996-03-24 18:16:10 +00:00
Jim Meyering a9ff449aa6 . 1996-03-24 18:13:56 +00:00
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