Commit Graph
15857 Commits
Author SHA1 Message Date
Jim Meyering 5dd24d18e2 use only my permanent address 2002-11-08 17:13:51 +00:00
Jim Meyering 24ba72493d use only my permanent address 2002-11-08 17:12:51 +00:00
Jim Meyering 7695925177 Use only my permanent address. 2002-11-08 17:12:27 +00:00
Jim Meyering 7676cbc5ce *** empty log message *** 2002-11-08 15:33:58 +00:00
Jim Meyering 554ecec785 (human_readable): Avoid warnings from gcc -Wshadow. 2002-11-08 15:33:30 +00:00
Jim Meyering 2c3bb203cd (human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes.  All uses changed.
2002-11-08 09:41:37 +00:00
Jim Meyering 95b50fa1ac (print_header): Use primitives from inttostr.h, not
human.h, to print large numbers simply.

(human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes.  All uses changed.

(print_header): In the header line, prefer SI to human
representation if it's shorter; if neither is shorter, try to
intuit what the user would prefer.
2002-11-08 09:39:36 +00:00
Jim Meyering 98f748e64c update from master 2002-11-07 00:29:24 +00:00
Jim Meyering bd89283b97 update from master 2002-11-07 00:28:52 +00:00
Jim Meyering 8fd93e0867 *** empty log message *** 2002-11-06 16:27:45 +00:00
Jim Meyering fad42afa02 (automake_repo): Use anoncvs@subversions.gnu.org. 2002-11-06 16:27:39 +00:00
Jim Meyering def6c2371e . 2002-11-06 11:37:47 +00:00
Jim Meyering 2fbdabd4b1 *** empty log message *** 2002-11-06 11:37:15 +00:00
Jim Meyering a6bc63bae0 (EXTRA_DIST): Add inttostr.h. 2002-11-06 11:37:11 +00:00
Jim Meyering 106c3bf364 (print_long_format, print_file_name_and_frills):
Use primitives from inttostr.h, not
human.h, to print large numbers simply.

(human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes.  All uses changed.

(file_output_block_size): New var, to distinguish
file sizes from other sizes.
(decode_switches): Set it.
2002-11-06 11:02:56 +00:00
Jim Meyering 1fc57fa80c *** empty log message *** 2002-11-06 10:37:29 +00:00
Jim Meyering d2d118e8d7 (printf invocation): Fix typo in index: change \0x prefix to \x.
Change \xhhh to \xhh.
2002-11-06 10:37:24 +00:00
Jim Meyering 2017db1bbd *** empty log message *** 2002-11-06 10:32:46 +00:00
Jim Meyering c6f5b4e383 Add support for locale-specific size indications (e.g.,
thousands-separators) and for explicit size suffixes on output.

(Block size): Say that:
This affects display format as well as block size.
Fractional block counts are rounded up.
ls file size blocksize defaults to 1.
A block size spec preceded by ' generates thousands separators.
A suffix without a preceding integer generates suffixes.
(tail invocation): 32k -> 32 KiB.
(What information is listed): ls -h is now equivalent to
ls --block-size=human, and ls -H is now equivalent to
ls --block-size=si.  Displayed file size is now always affected by
--block-size.
2002-11-06 10:32:41 +00:00
Jim Meyering 5ce09d1ac7 *** empty log message *** 2002-11-06 10:28:11 +00:00
Jim Meyering 59507dd554 (usage): Update description. 2002-11-06 10:28:02 +00:00
Jim Meyering 9c2be29be5 *** empty log message *** 2002-11-06 09:23:55 +00:00
Jim Meyering 76e1efd955 (TESTS): Add printf-hex. 2002-11-06 09:23:50 +00:00
Jim Meyering 2929e95fb7 *** empty log message *** 2002-11-06 09:23:33 +00:00
Jim Meyering eff5b46e0c Be careful to test the code in this package, not the shell built-in function. 2002-11-06 09:23:23 +00:00
Jim Meyering fc34d6284c *** empty log message *** 2002-11-06 09:21:59 +00:00
Jim Meyering b68401890d Make sure that only two of the `H's in \xHHH are consumed
as part of the \x escape sequence.
2002-11-06 09:19:50 +00:00
Jim Meyering 0a5d4112ba (print_esc): Hexadecimal \xhh escapes may have
at most two hex. digits, not three.
2002-11-06 09:04:50 +00:00
Jim Meyering 1f5b482124 (inttostr): Remove; use new imaxtostr library function instead. 2002-11-05 20:37:20 +00:00
Jim Meyering c7a6c9af8b (checkfp): Use primitives from inttostr.h, not human.h,
to print large numbers simply.
2002-11-05 20:34:00 +00:00
Jim Meyering 49cfd5a52c (bsd_sum_file, sysv_sym_file):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05 20:33:35 +00:00
Jim Meyering 371e50492e (xlseek):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05 20:32:55 +00:00
Jim Meyering 4c16b8d35a (write_counts, wc):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05 20:30:43 +00:00
Jim Meyering f3fc3d4726 (dopass):
Use primitives from inttostr.h, not human.h, to print large numbers simply.

(OUTPUT_BLOCK_SIZE): remove.
(dopass): When printing progress, use floor for what has been done
so far (since we should be conservative there), and ceiling for
what needs to be done (since that's what other programs use).
2002-11-05 20:28:36 +00:00
Jim Meyering 3f2cc46da4 (print_factors):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05 20:17:28 +00:00
Jim Meyering 5526f4f208 (print_stats, main):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05 20:16:31 +00:00
Jim Meyering 1e583af98a (handle_line_error, parse_patterns):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
2002-11-05 20:14:41 +00:00
Jim Meyering a591db7465 (cksum): Use primitives from inttostr.h, not
human.h, to print large numbers simply.
2002-11-05 17:22:55 +00:00
Jim Meyering adaa25e292 *** empty log message *** 2002-10-19 16:34:37 +00:00
Jim Meyering 917181c1a9 (cwrite): Change type of `bytes' parameter to size_t
Remove now-useless cast.
(stdread): Remove function.
(bytes_split): Use size_t instead of int.
Use safe_read, not stdread.
(lines_split): Likewise.
Use memchr rather than a `while' loop.
(line_bytes_split): Use size_t instead of int.
Use safe_read, not stdread.
(main): Add some FIXME comments to remind me to remove casts.
2002-10-19 16:34:25 +00:00
Jim Meyering d3f010cb21 *** empty log message *** 2002-10-19 13:49:38 +00:00
Jim Meyering dce67bd261 Rewrite to support locale-specific
notations like thousands separators.
Specify what includer of include.h must include beforehand.
(human_group_digits, human_suppress_point_zero, human_autoscale,
human_base_1024, human_SI, human_B): New enum values.
(human_readable): Rename from human_readable_inexact; put the
options before the sizes.  All uses changed.  The old human_readable
function has been removed; use inttostr.h instead.
(human_options): Renamed from human_block_size, with new signature
that allows block sizes up to UINTMAX_MAX.  All callers changed.
2002-10-19 13:48:04 +00:00
Jim Meyering 4774c63a5e *** empty log message *** 2002-10-19 12:55:11 +00:00
Jim Meyering f02ba67bbb *** empty log message *** 2002-10-19 12:54:29 +00:00
Jim Meyering a967adb215 (libfetish_a_SOURCES): Add imaxtostr.c, offtostr.c, umaxtostr.c.
(EXTRA_DIST): Add inttostr.c.
2002-10-19 12:54:23 +00:00
Jim Meyering 927bbc5cc3 New files. From GNU tar. 2002-10-19 12:34:03 +00:00
Jim Meyering 8d30090e2e *** empty log message *** 2002-10-19 07:58:09 +00:00
Jim Meyering aeaaa9fda5 *** empty log message *** 2002-10-19 07:57:08 +00:00
Jim Meyering 2e0798f483 (print_heading): Align TTY and Name headings. 2002-10-19 07:55:15 +00:00
Jim Meyering 82d3409e3d *** empty log message *** 2002-10-18 06:49:24 +00:00