|
e7c9de64
|
2000-06-16T12:51:28
|
|
(adjust_value): New function.
(human_readable_inexact): Apply rounding style even when
printing approximate values.
|
|
d3551c3d
|
2000-06-15T12:21:10
|
|
(human_readable_inexact): Allow an input block
size that is not a multiple of the output block size, and vice versa.
|
|
de1b0c61
|
2000-02-27T17:54:25
|
|
use double quotes, not single quotes around syntax-error-evoking string
|
|
d9f6701e
|
2000-02-27T17:39:52
|
|
Use `#if !HAVE_DECL...' instead of `#ifndef HAVE_DECL..'
now that autoconf always defines the HAVE_DECL_ symbols.
Arrange for cpp to fail if the configure-time
declaration check was not run.
|
|
0599e5c9
|
1999-11-07T21:06:02
|
|
(default_block_size): New function.
(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.
|
|
f1d77440
|
1999-07-04T08:47:28
|
|
(human_readable): New function.
(human_readable_inexact): Renamed from human_readable, with new arg
INEXACT_STYLE. Add support for ceiling and floor.
|
|
615e02f2
|
1999-05-17T13:03:46
|
|
(human_readable): Allow from_block_size to be zero.
|
|
150e3921
|
1999-05-13T20:48:44
|
|
Include <string.h> or <strings.h> for strlen prototype.
|
|
4abb9676
|
1999-04-25T19:18:55
|
|
Don't include inttypes.h here.
|
|
7cc21036
|
1999-04-18T23:18:32
|
|
Include xstrtol.h, not xstrtoul.h, since xstrtol.h now defines all the
xstrto... functions.
|
|
f8715f3a
|
1999-01-01T06:47:04
|
|
(humblock): Use ARGMATCH in place of argmatch.
|
|
23360fcb
|
1998-07-22T18:30:16
|
|
(human_readable): amt -> damt, to fix typo when
computing which power to use after overflow occurs during
multiplication.
From Paul Eggert.
|
|
96e78d1f
|
1998-06-29T15:23:04
|
|
* lib/human.c, lib/human.h (human_readable): Coalesce last two args
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.
|
|
42313b42
|
1997-11-30T11:10:24
|
|
(human_readable): Convert to ANSI-style definition.
[lint]: Define `power'.
|
|
1bbd61b9
|
1997-11-30T10:24:32
|
|
New file. The interface is inspired
by the human_readable function that was in du.c, but it's pretty
much rewritten from scratch.
|