Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
(getenv): Do not declare.
|
|
Bug reported by Lute Kamstra in
<http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
|
|
|
|
|
|
variable 'amt'. Unfortunately this means using some gotos.
|
|
|
|
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.
|
|
(generate_suffix_backwards): New function.
(human_readable_inexact): Use it.
|
|
(human_readable_inexact): Apply rounding style even when
printing approximate values.
|
|
size that is not a multiple of the output block size, and vice versa.
|
|
|
|
now that autoconf always defines the HAVE_DECL_ symbols.
Arrange for cpp to fail if the configure-time
declaration check was not run.
|
|
(humblock): Use it if no block size is specified.
(human_block_size): If the specified block size is zero, report an
error if report_errors is nonzero; otherwise use the default.
|
|
(human_readable_inexact): Renamed from human_readable, with new arg
INEXACT_STYLE. Add support for ceiling and floor.
|
|
|
|
|
|
|
|
xstrto... functions.
|
|
|
|
computing which power to use after overflow occurs during
multiplication.
From Paul Eggert.
|
|
into one, for convenience. All callers changed.
(human_block_size): New function.
* lib/human.c: Include <config.h> only if HAVE_CONFIG_H.
Include <stdlib.h> if HAVE_STDLIB_H;
declare getenv unless HAVE_DECL_GETENV.
(_): New macro.
Include <argmatch.h>, <error.h>, <xstrtoul.h>.
(DEFAULT_BLOCK_SIZE): New macro.
(block_size_args, block_size_types): New constants.
(humblock): New function.
|
|
[lint]: Define `power'.
|
|
by the human_readable function that was in du.c, but it's pretty
much rewritten from scratch.
|