Age | Commit message (Collapse) | Author |
|
(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.
|