Jim Meyering [Mon, 27 Aug 2001 08:55:04 +0000 (08:55 +0000)]
.
Jim Meyering [Mon, 27 Aug 2001 08:54:19 +0000 (08:54 +0000)]
remove xstrtoxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:52:46 +0000 (08:52 +0000)]
*** empty log message ***
Jim Meyering [Mon, 27 Aug 2001 08:52:40 +0000 (08:52 +0000)]
(libfetish_a_SOURCES): Add strtoxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:50:19 +0000 (08:50 +0000)]
Actually remove the definition of N_.
Jim Meyering [Mon, 27 Aug 2001 08:50:04 +0000 (08:50 +0000)]
(N_): Remove definition.
Revert most of last change.
Instead, simply don't mark the `Copyright...' string for translation.
Based on advice from Paul Eggert.
Jim Meyering [Mon, 27 Aug 2001 08:46:16 +0000 (08:46 +0000)]
*** empty log message ***
Jim Meyering [Mon, 27 Aug 2001 08:46:08 +0000 (08:46 +0000)]
Tweak comment.
Jim Meyering [Mon, 27 Aug 2001 08:44:27 +0000 (08:44 +0000)]
include strtoxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:43:54 +0000 (08:43 +0000)]
renamed to strtoxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:31:30 +0000 (08:31 +0000)]
renamed from strtouxmax.c
Jim Meyering [Sun, 26 Aug 2001 18:27:00 +0000 (18:27 +0000)]
(copyright-check): Update to reflect fact that
the copyright year is now defined separately.
Jim Meyering [Sun, 26 Aug 2001 18:26:49 +0000 (18:26 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 18:26:01 +0000 (18:26 +0000)]
(version_etc_copyright_fmt): Replace literal year
of copyright with `%s' so translators don't get an untranslated message in 2002.
(COPYRIGHT_YEAR): Define.
(version_etc): Use fprintf rather than fputs.
Jim Meyering [Sun, 26 Aug 2001 10:54:59 +0000 (10:54 +0000)]
.
Jim Meyering [Sun, 26 Aug 2001 10:46:20 +0000 (10:46 +0000)]
.
Jim Meyering [Sun, 26 Aug 2001 10:43:53 +0000 (10:43 +0000)]
.
Jim Meyering [Sun, 26 Aug 2001 10:43:00 +0000 (10:43 +0000)]
.
Jim Meyering [Sun, 26 Aug 2001 10:42:50 +0000 (10:42 +0000)]
Add xstrtoimax.
Jim Meyering [Sun, 26 Aug 2001 10:41:57 +0000 (10:41 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 10:41:52 +0000 (10:41 +0000)]
(libfetish_a_SOURCES): Add xstrtoimax.c.
Jim Meyering [Sun, 26 Aug 2001 07:33:20 +0000 (07:33 +0000)]
.
Jim Meyering [Sun, 26 Aug 2001 07:28:44 +0000 (07:28 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 07:28:06 +0000 (07:28 +0000)]
New file, from GNU libc.
Jim Meyering [Sun, 26 Aug 2001 07:20:57 +0000 (07:20 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 07:20:50 +0000 (07:20 +0000)]
Require jm_AC_PREREQ_XSTRTOIMAX.
Jim Meyering [Sun, 26 Aug 2001 07:20:05 +0000 (07:20 +0000)]
resync with xstrtoumax.m4
Jim Meyering [Sun, 26 Aug 2001 07:19:43 +0000 (07:19 +0000)]
bump serial number
Jim Meyering [Sun, 26 Aug 2001 07:19:28 +0000 (07:19 +0000)]
Add comments explaining why we AC_REPLACE_FUNCS(strtol).
Jim Meyering [Sun, 26 Aug 2001 07:06:48 +0000 (07:06 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 07:03:32 +0000 (07:03 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 07:03:07 +0000 (07:03 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 07:00:08 +0000 (07:00 +0000)]
Stub. Just #define STRTOUXMAX_SIGNED, then
#include "strtouxmax.c"
Jim Meyering [Sun, 26 Aug 2001 06:59:12 +0000 (06:59 +0000)]
Now this file is just a stub.
Jim Meyering [Sun, 26 Aug 2001 06:58:10 +0000 (06:58 +0000)]
Renamed from a factored strtoumax.c.
Jim Meyering [Sun, 26 Aug 2001 06:53:56 +0000 (06:53 +0000)]
Factored to work both for unsigned and signed types, ...
Jim Meyering [Sun, 26 Aug 2001 06:51:25 +0000 (06:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 06:51:10 +0000 (06:51 +0000)]
(mergefps): Do not allocate at least sort_size bytes for each merge buffer.
Instead, allocate at least sort_size bytes total.
Jim Meyering [Sun, 26 Aug 2001 05:42:40 +0000 (05:42 +0000)]
.
Jim Meyering [Sun, 26 Aug 2001 05:41:35 +0000 (05:41 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 05:40:46 +0000 (05:40 +0000)]
(nextarg): Use strcoll, not strcmp.
Jim Meyering [Sun, 26 Aug 2001 05:39:37 +0000 (05:39 +0000)]
expr now uses LC_COLLATE for string comparison, as per POSIX.
Jim Meyering [Sat, 25 Aug 2001 17:24:16 +0000 (17:24 +0000)]
.
Jim Meyering [Sat, 25 Aug 2001 17:14:46 +0000 (17:14 +0000)]
.
Jim Meyering [Sat, 25 Aug 2001 17:13:45 +0000 (17:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 17:13:30 +0000 (17:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 17:13:23 +0000 (17:13 +0000)]
Use @option, rather than @samp everywhere.
Jim Meyering [Sat, 25 Aug 2001 15:11:00 +0000 (15:11 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 15:10:53 +0000 (15:10 +0000)]
Re-enable some commented-out tests.
Jim Meyering [Sat, 25 Aug 2001 15:09:36 +0000 (15:09 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 15:09:31 +0000 (15:09 +0000)]
(main): Fix a typo in the previous patch: missing
a bounds check for examples like `uniq a b c'.
Jim Meyering [Sat, 25 Aug 2001 15:07:17 +0000 (15:07 +0000)]
(main): Fix some more incompatibilities with POSIX.2,
(e.g. `uniq +3 --' did not work) by invoking getopt_long with
leading '-', resembling what was done to 'sort' on 2001-03-20.
Recognize an +N option only if it is an integer in range, and
(if POSIXLY_CORRECT) only if a file name argument has not been seen;
otherwise silently treat it as a file name.
If the user specifies too many operands, output the first one
in the error message, as a diagnostic aid.
Jim Meyering [Sat, 25 Aug 2001 13:50:47 +0000 (13:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 13:50:41 +0000 (13:50 +0000)]
(main): Don't report an error when given the valid options `+3 -d'.
Jim Meyering [Sat, 25 Aug 2001 09:23:34 +0000 (09:23 +0000)]
.
Jim Meyering [Sat, 25 Aug 2001 09:20:14 +0000 (09:20 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 09:19:59 +0000 (09:19 +0000)]
(different): Don't assume that lengths can fit
into size_t. Tune code for the common case where the line
lengths differ: we avoid comparing them entirely in that case.
Jim Meyering [Sat, 25 Aug 2001 09:04:57 +0000 (09:04 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 09:04:54 +0000 (09:04 +0000)]
Add tests for -s 0 and -w 0.
Jim Meyering [Sat, 25 Aug 2001 09:04:33 +0000 (09:04 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 07:33:39 +0000 (07:33 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 07:33:20 +0000 (07:33 +0000)]
Remove arbitrary restrictions on sizes, fixing a bug reported
by Geoff Whale.
(skip_fields, skip_chars, check_chars): Now size_t, not int.
(size_opt): New function. Do not arbitrarily reject size zero.
Change the wording of the error message slightly, for convenience.
(find_field): Use size_t, not int, to compute sizes.
(different, main): check_chars==0 is no longer a special case, as
it defaults to SIZE_MAX.
(main): Check for overflow with args like -
234234234234234.
Use 'size_opt' to convert optional arguments to sizes.
Jim Meyering [Sat, 25 Aug 2001 05:48:19 +0000 (05:48 +0000)]
Add new test, #54, for the just-fixed bug.
Jim Meyering [Sat, 25 Aug 2001 05:42:53 +0000 (05:42 +0000)]
*** empty log message ***
Jim Meyering [Sat, 25 Aug 2001 05:42:46 +0000 (05:42 +0000)]
(find_field): Don't count trailing newline to be
part of the field. This disagrees with POSIX.2, but it's
gotta be a bug in the standard. An interpretations request
has been submitted to PASC.
Jim Meyering [Sat, 25 Aug 2001 05:42:07 +0000 (05:42 +0000)]
*** empty log message ***
Jim Meyering [Fri, 24 Aug 2001 08:48:21 +0000 (08:48 +0000)]
(cut invocation): Document how cut treats lines with no separators.
Jim Meyering [Fri, 24 Aug 2001 08:41:48 +0000 (08:41 +0000)]
*** empty log message ***
Jim Meyering [Fri, 24 Aug 2001 08:41:26 +0000 (08:41 +0000)]
Use `n_users' in place of `argc - optind' in two more places.
Jim Meyering [Fri, 24 Aug 2001 08:40:29 +0000 (08:40 +0000)]
(main): Fail if -l is specified with no username.
Jim Meyering [Fri, 24 Aug 2001 08:31:11 +0000 (08:31 +0000)]
*** empty log message ***
Jim Meyering [Fri, 24 Aug 2001 08:31:02 +0000 (08:31 +0000)]
(usage): Clarify description of -l. From Clark Morgan.
Jim Meyering [Fri, 24 Aug 2001 08:11:30 +0000 (08:11 +0000)]
.
Jim Meyering [Fri, 24 Aug 2001 07:59:09 +0000 (07:59 +0000)]
*** empty log message ***
Jim Meyering [Fri, 24 Aug 2001 07:59:02 +0000 (07:59 +0000)]
*** empty log message ***
Jim Meyering [Fri, 24 Aug 2001 07:58:42 +0000 (07:58 +0000)]
*** empty log message ***
Jim Meyering [Fri, 24 Aug 2001 07:58:21 +0000 (07:58 +0000)]
*** empty log message ***
Jim Meyering [Fri, 24 Aug 2001 07:58:15 +0000 (07:58 +0000)]
'expr' now requires '+' rather than 'quote' to quote tokens.
Jim Meyering [Fri, 24 Aug 2001 07:56:46 +0000 (07:56 +0000)]
(posixly_correct): Remove; no longer needed.
(main): Do not worry about POSIXLY_CORRECT, as it's OK for
expr to have options (so long as they do not begin with digits).
Jim Meyering [Fri, 24 Aug 2001 06:39:29 +0000 (06:39 +0000)]
update from libc
Jim Meyering [Thu, 23 Aug 2001 06:43:44 +0000 (06:43 +0000)]
update from glibc
Jim Meyering [Tue, 21 Aug 2001 09:39:22 +0000 (09:39 +0000)]
wording tweak
Jim Meyering [Sun, 19 Aug 2001 18:12:03 +0000 (18:12 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 21:21:40 +0000 (21:21 +0000)]
add paren tests
Jim Meyering [Sat, 18 Aug 2001 21:21:15 +0000 (21:21 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 21:21:07 +0000 (21:21 +0000)]
(nextarg): Advance ARGS by one if the next token matches.
All callers changed.
Jim Meyering [Sat, 18 Aug 2001 20:48:09 +0000 (20:48 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 20:47:57 +0000 (20:47 +0000)]
00: new test
Jim Meyering [Sat, 18 Aug 2001 20:46:04 +0000 (20:46 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 20:45:59 +0000 (20:45 +0000)]
(isstring): Remove.
(eval2): Do comparisons as strings first, before trying to convert to
integer. This avoids loss of information and wrong result, e.g. for
"expr '00' '<' '0!'", where you don't want to convert '00' to '0'.
Jim Meyering [Sat, 18 Aug 2001 20:24:44 +0000 (20:24 +0000)]
.
Jim Meyering [Sat, 18 Aug 2001 20:23:01 +0000 (20:23 +0000)]
Code cleanup to avoid tricky macros and old-style function declarations.
(cmpf, less_than, less_equal, equal, not_equal, greater_equal,
greater_than, arithf, arithdivf, plus, minus, multiply, divide, mod):
Remove.
(eval4, eval3, eval2): Rewrite to avoid the need for the above macros
and functions.
Jim Meyering [Sat, 18 Aug 2001 19:29:51 +0000 (19:29 +0000)]
.
Jim Meyering [Sat, 18 Aug 2001 19:29:21 +0000 (19:29 +0000)]
.
Jim Meyering [Sat, 18 Aug 2001 19:00:40 +0000 (19:00 +0000)]
.
Jim Meyering [Sat, 18 Aug 2001 17:48:37 +0000 (17:48 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 17:48:20 +0000 (17:48 +0000)]
(binary_operator): Move declarations of lt,rt `down'
into the scopes where they're actually used.
(unary_operator): Likewise for `fd'.
Jim Meyering [Sat, 18 Aug 2001 17:45:37 +0000 (17:45 +0000)]
*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 17:45:31 +0000 (17:45 +0000)]
(isint, binary_operator, unary_operator):
Use intmax_t for argument integers, not long.
(age_of, binary_operator): Use time_t for times, not long.
(unary_operator): If N is out of int range, -t N now returns false.
Jim Meyering [Sat, 18 Aug 2001 17:14:52 +0000 (17:14 +0000)]
add minus2