Commit Graph
11327 Commits
Author SHA1 Message Date
Jim Meyering 4a7159dc6c (libfetish_a_SOURCES): Add xstrtoimax.c. 2001-08-26 10:41:52 +00:00
Jim Meyering 7fe7b5d7e2 . 2001-08-26 07:33:20 +00:00
Jim Meyering 84f5f8528f *** empty log message *** 2001-08-26 07:28:44 +00:00
Jim Meyering a28d74d2d2 New file, from GNU libc. 2001-08-26 07:28:06 +00:00
Jim Meyering 2f25926b52 *** empty log message *** 2001-08-26 07:20:57 +00:00
Jim Meyering 4b0c5ec1e9 Require jm_AC_PREREQ_XSTRTOIMAX. 2001-08-26 07:20:50 +00:00
Jim Meyering b3e98fa251 resync with xstrtoumax.m4 2001-08-26 07:20:05 +00:00
Jim Meyering ed1dca3b40 bump serial number 2001-08-26 07:19:43 +00:00
Jim Meyering a27a05e698 Add comments explaining why we AC_REPLACE_FUNCS(strtol). 2001-08-26 07:19:28 +00:00
Jim Meyering 585aa5fac9 *** empty log message *** 2001-08-26 07:06:48 +00:00
Jim Meyering a5a086c06e *** empty log message *** 2001-08-26 07:03:32 +00:00
Jim Meyering ee356181ed *** empty log message *** 2001-08-26 07:03:07 +00:00
Jim Meyering 114c6c6af1 Stub. Just #define STRTOUXMAX_SIGNED, then
#include "strtouxmax.c"
2001-08-26 07:00:08 +00:00
Jim Meyering 96096e769d Now this file is just a stub. 2001-08-26 06:59:12 +00:00
Jim Meyering b8d9cea40a Renamed from a factored strtoumax.c. 2001-08-26 06:58:10 +00:00
Jim Meyering f9a905424f Factored to work both for unsigned and signed types, ... 2001-08-26 06:53:56 +00:00
Jim Meyering 10d29bac27 *** empty log message *** 2001-08-26 06:51:25 +00:00
Jim Meyering 9a3433a769 (mergefps): Do not allocate at least sort_size bytes for each merge buffer.
Instead, allocate at least sort_size bytes total.
2001-08-26 06:51:10 +00:00
Jim Meyering b2dfbca4f7 . 2001-08-26 05:42:40 +00:00
Jim Meyering a25c404a31 *** empty log message *** 2001-08-26 05:41:35 +00:00
Jim Meyering 1463ff6353 (nextarg): Use strcoll, not strcmp. 2001-08-26 05:40:46 +00:00
Jim Meyering c8cde25280 expr now uses LC_COLLATE for string comparison, as per POSIX. 2001-08-26 05:39:37 +00:00
Jim Meyering b3d09e5532 . 2001-08-25 17:24:16 +00:00
Jim Meyering c764daeac9 . 2001-08-25 17:14:46 +00:00
Jim Meyering 8e17181225 *** empty log message *** 2001-08-25 17:13:45 +00:00
Jim Meyering cd66abd80a *** empty log message *** 2001-08-25 17:13:30 +00:00
Jim Meyering 0603231e16 Use @option, rather than @samp everywhere. 2001-08-25 17:13:23 +00:00
Jim Meyering e73f197706 *** empty log message *** 2001-08-25 15:11:00 +00:00
Jim Meyering 71409500a9 Re-enable some commented-out tests. 2001-08-25 15:10:53 +00:00
Jim Meyering 83485ba28d *** empty log message *** 2001-08-25 15:09:36 +00:00
Jim Meyering 598382f216 (main): Fix a typo in the previous patch: missing
a bounds check for examples like `uniq a b c'.
2001-08-25 15:09:31 +00:00
Jim Meyering ba2900b4aa (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.
2001-08-25 15:07:17 +00:00
Jim Meyering 1774bc1d78 *** empty log message *** 2001-08-25 13:50:47 +00:00
Jim Meyering b27c41df41 (main): Don't report an error when given the valid options `+3 -d'. 2001-08-25 13:50:41 +00:00
Jim Meyering a1ec1c4af3 . 2001-08-25 09:23:34 +00:00
Jim Meyering 666c84f948 *** empty log message *** 2001-08-25 09:20:14 +00:00
Jim Meyering c1471b042b (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.
2001-08-25 09:19:59 +00:00
Jim Meyering 7bd952c2a8 *** empty log message *** 2001-08-25 09:04:57 +00:00
Jim Meyering 18005e1153 Add tests for -s 0 and -w 0. 2001-08-25 09:04:54 +00:00
Jim Meyering a2057e286e *** empty log message *** 2001-08-25 09:04:33 +00:00
Jim Meyering 74f084382d *** empty log message *** 2001-08-25 07:33:39 +00:00
Jim Meyering 59d2dceb2c 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.
2001-08-25 07:33:20 +00:00
Jim Meyering b087829d9b Add new test, #54, for the just-fixed bug. 2001-08-25 05:48:19 +00:00
Jim Meyering a6cac026c6 *** empty log message *** 2001-08-25 05:42:53 +00:00
Jim Meyering 81cb734910 (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.
2001-08-25 05:42:46 +00:00
Jim Meyering 90790efabe *** empty log message *** 2001-08-25 05:42:07 +00:00
Jim Meyering 8e092dca08 (cut invocation): Document how cut treats lines with no separators. 2001-08-24 08:48:21 +00:00
Jim Meyering fa10fa9e64 *** empty log message *** 2001-08-24 08:41:48 +00:00
Jim Meyering 9c2368bab8 Use n_users' in place of argc - optind' in two more places. 2001-08-24 08:41:26 +00:00
Jim Meyering 815dafff5a (main): Fail if -l is specified with no username. 2001-08-24 08:40:29 +00:00