/[gnulib]/gnulib/lib/human.c
ViewVC logotype

Log of /gnulib/lib/human.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Mon Aug 6 16:44:25 2007 UTC (16 years, 9 months ago) by eggert
Branch: MAIN
CVS Tags: HEAD
Changes since 1.36: +5 -12 lines
Diff to previous 1.36
* NEWS: Describe interface changes to human, xstrtol.
* lib/human.h: Include <xstrtol.h>.
(human_options): Return enum strtol_error, not int.  Remove
bool arg; take int * instead.
* lib/human.c: Don't include "gettext.h".
(_): Remove; no longer used.
Don't include <xstrtol.h>, since human.h does it.
(human_options): Adjust to abovementioned interface changes.
Do not report error to stderr; that's now the caller's
responsibility.
* lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
interface change.
* lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
Str, Argument_type_string.  All uses changed.  Put " argument"
in diagnostics to make them clearer.  Change wording of suffix
message for clarity.
(STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
Argument_type_string.
(STRTOL_FATAL_WARN): Remove; no longer used.
* modules/human (Depends-on): Remove gettext-h.


Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Thu Jul 26 08:28:56 2007 UTC (16 years, 9 months ago) by haible
Branch: MAIN
Changes since 1.35: +3 -4 lines
Diff to previous 1.35
Revert last patch.


Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Wed Jul 25 22:42:37 2007 UTC (16 years, 9 months ago) by haible
Branch: MAIN
Changes since 1.34: +4 -3 lines
Diff to previous 1.34
2007-07-25  Jim Meyering  <jim@meyering.net>
            Bruno Haible  <bruno@clisp.org>
        * lib/xstrtol.h (_STRTOL_ERROR): Change third argument from a
        localized noun to an option name.
        (STRTOL_FATAL_ERROR, STRTOL_FAIL_WARN): Likewise.
        * lib/human.h (human_options): Insert a third argument.
        * lib/human.h (human_options): Likewise. Pass it to STRTOL_FATAL_ERROR.


Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Thu Oct 5 21:23:21 2006 UTC (17 years, 7 months ago) by eggert
Branch: MAIN
Changes since 1.33: +0 -7 lines
Diff to previous 1.33
Remove macros that are no longer needed now that stdint.h is
reliable.
* fsusage.c (UINTMAX_MAX): Remove.
* human.c (SIZE_MAX, UINTMAX_MAX): Remove.
* utimecmp.c (SIZE_MAX): Remove.


Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Wed Sep 13 22:38:14 2006 UTC (17 years, 8 months ago) by eggert
Branch: MAIN
Changes since 1.32: +3 -5 lines
Diff to previous 1.32
* _fpending.c: Include <config.h> unconditionally, since we no
longer worry about uses that don't define HAVE_CONFIG_H.
* acl.c, alloca.c, argmatch.c, atexit.c, backupfile.c:
* basename.c, c-stack.c, c-strtod.c, calloc.c, canon-host.c:
* canonicalize.c, chdir-long.c, chdir-safer.c, chown.c:
* cloexec.c, close-stream.c, closeout.c, creat-safer.c:
* cycle-check.c, diacrit.c, dirchownmod.c, dirfd.c, dirname.c:
* dup-safer.c, dup2.c, error.c, euidaccess.c, exclude.c:
* exitfail.c, fchmodat.c, fchown-stub.c, fd-safer.c:
* file-type.c, fileblocks.c, filemode.c, filenamecat.c:
* fnmatch.c, fopen-safer.c, fprintftime.c, free.c, fsusage.c:
* ftruncate.c, fts-cycle.c, fts.c, full-write.c, gai_strerror.c:
* getcwd.c, getdate.y, getdomainname.c, getgroups.c:
* gethostname.c, gethrxtime.c, getloadavg.c, getlogin_r.c:
* getndelim2.c, getnline.c, getopt.c, getopt1.c, getpass.c:
* gettime.c, gettimeofday.c, getugroups.c, getusershell.c:
* glob.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c:
* human.c, idcache.c, inet_ntop.c, inet_pton.c, inttostr.c:
* isdir.c, lchown.c, linebuffer.c, long-options.c, lstat.c:
* malloc.c, md5.c, memcasecmp.c, memchr.c, memcmp.c, memcoll.c:
* memcpy.c, memmove.c, memrchr.c, mkancesdirs.c, mkdir-p.c:
* mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c, modechange.c:
* mountlist.c, nanosleep.c, obstack.c, open-safer.c:
* openat-die.c, openat.c, pagealign_alloc.c, physmem.c:
* pipe-safer.c, posixtm.c, posixver.c, putenv.c, quote.c:
* quotearg.c, raise.c, readtokens.c, readtokens0.c, readutmp.c:
* realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c:
* same.c, save-cwd.c, savedir.c, setenv.c, settime.c, sha1.c:
* sig2str.c, snprintf.c, strdup.c, strerror.c, strftime.c:
* stripslash.c, strndup.c, strnlen.c, strpbrk.c, strtod.c:
* strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c:
* timegm.c, tmpfile-safer.c, unlinkdir.c, userspec.c, utime.c:
* utimecmp.c, utimens.c, version-etc-fsf.c, version-etc.c:
* xalloc-die.c, xgetcwd.c, xgethostname.c, xmalloc.c:
* xmemcoll.c, xnanosleep.c, xreadlink.c, xstrtod.c:
* xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c:
Likewise.


Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Mon Sep 19 17:28:14 2005 UTC (18 years, 8 months ago) by eggert
Branch: MAIN
Changes since 1.31: +1 -1 lines
Diff to previous 1.31
Use a consistent style for including <config.h>.
* __fpending.c, acl.c, argmatch.c,
argp-help.c, argp-parse.c,
argp-pvh.c, backupfile.c, basename.c, c-stack.c,
calloc.c, check-version.c, cloexec.c, closeout.c, copy-file.c,
creat-safer.c, cycle-check.c, dirfd.c, dirname.c, dup-safer.c,
dup2.c, euidaccess.c, exclude.c, exitfail.c, fatal-signal.c,
fd-safer.c, file-type.c, fileblocks.c, filemode.c,
filenamecat.c, findprog.c, fnmatch.c, fopen-safer.c, free.c,
fsusage.c, ftruncate.c, full-write.c, fwriteerror.c,
getaddrinfo.c, getcwd.c, getdelim.c, getline.c, getlogin_r.c,
getndelim2.c, getnline.c, getopt1.c, getpass.c, group-member.c,
hard-locale.c, hash-pjw.c, hash.c, human.c, idcache.c,
inet_ntop.c, isdir.c, long-options.c, malloc.c, memcasecmp.c,
memcmp.c, memcoll.c, memcpy.c, memmove.c, mkdir-p.c,
modechange.c, mountlist.c, open-safer.c, physmem.c,
pipe-safer.c, pipe.c, poll.c, posixver.c, progname.c,
progreloc.c, putenv.c, quote.c, quotearg.c, readline.c,
readlink.c, realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c,
safe-read.c, same.c, save-cwd.c, savedir.c, sig2str.c,
strcspn.c, strerror.c, stripslash.c, strncasecmp.c, strndup.c,
strnlen.c, strnlen1.c, strsep.c, strstr.c, strtod.c,
strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c,
userspec.c, utimecmp.c, version-etc-fsf.c,
version-etc.c, wait-process.c, xalloc-die.c, xgetcwd.c,
xmalloc.c, xmemcoll.c, xnanosleep.c, xreadlink.c, xsetenv.c,
xstrndup.c, xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c:
Standardize inclusion of config.h.
* __fpending.h, dirfd.h, getdate.h, human.h,
inttostr.h:  Removed inclusion of config.h from header files.
* inttostr.c:  Adjusted in-tree users.
* timespec.h: Remove superfluous warning to include config.h.
* atexit.c, chdir-long.c chown.c, fchown-stub.c, getgroups.c,
gettimeofday.c, lchown.c, lstat.c, mkdir.c, mkstemp.c,
nanosleep.c, openat.c, raise.c, readtokens0.c, readutmp.c,
unlinkdir.c: Guard inclusion of config.h with HAVE_CONFIG_H.


Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Sat May 14 06:03:58 2005 UTC (19 years ago) by eggert
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30
*** empty log message ***


Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Tue Apr 12 06:55:03 2005 UTC (19 years, 1 month ago) by meyering
Branch: MAIN
Changes since 1.29: +4 -1 lines
Diff to previous 1.29
(humblock): Set *options even when returning due to
xstrtoumax conversion failure.  Thanks to a used-uninitialized
warning from gcc-4.


Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Wed Mar 9 19:11:23 2005 UTC (19 years, 2 months ago) by eggert
Branch: MAIN
Changes since 1.28: +3 -4 lines
Diff to previous 1.28
Factor int-properties macros into a single file, except for
glibc-related files.
* lib/intprops.h: New file.
* lib/getloadavg.c: Include it instead of limits.h.
(INT_STRLEN_BOUND): Remove.
* lib/human.c: Include intprops.h.
(group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
* lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than 302/1000.
* lib/inttostr.h: Include intprops.h instead of limits.h.
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
* lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
for consistency with intprops.h.
(time_t_is_integer, twos_complement_arithmetic): Use them.
* lib/sig2str.h: Include <signal.h>, intprops.h.
(INT_STRLEN_BOUND): Remove.
* lib/strftime.c (TYPE_SIGNED): Remove.
(INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
* lib/strtol.c: Adjust comments to match intprops.h.
* lib/userspec.c: Include intprops.h.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
* lib/utimecmp.c, lib/xnanosleep.c, lib/xstrtol.c: Likewise.
* lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
instead of rolling our own expressions.
* lib/xstrtol.c: Include xstrtol.h first, to test interface.
* modules/getloadavg (Files): Add lib/intprops.h.
* modules/human (Files): Likewise.
* modules/inttostr (Files): Likewise.
* modules/sig2str (Files): Likewise.
* modules/userspec (Files): Likewise.
* modules/utimecmp (Files): Likewise.
* modules/xnanosleep (Files): Likewise.
* modules/xstrtol (Files): Likewise.


Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Tue Jan 4 18:46:24 2005 UTC (19 years, 4 months ago) by eggert
Branch: MAIN
Changes since 1.27: +8 -8 lines
Diff to previous 1.27
* human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
definitions to be after all include files, to avoid collisions.


Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Sun Dec 5 06:50:15 2004 UTC (19 years, 5 months ago) by eggert
Branch: MAIN
Changes since 1.26: +1 -6 lines
Diff to previous 1.26
Import chamges from coreutils, so that the code now assumes
that <locale.h> and its functions exist.


Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Wed Nov 17 07:18:27 2004 UTC (19 years, 6 months ago) by eggert
Branch: MAIN
Changes since 1.25: +6 -0 lines
Diff to previous 1.25
Import from coreutils.


Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Sat Aug 7 00:09:39 2004 UTC (19 years, 9 months ago) by eggert
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24
Merge from coreutils.


Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Wed Mar 31 07:25:19 2004 UTC (20 years, 1 month ago) by eggert
Branch: MAIN
Changes since 1.23: +5 -3 lines
Diff to previous 1.23
(humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.


Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Tue Oct 14 20:08:26 2003 UTC (20 years, 7 months ago) by eggert
Branch: MAIN
Changes since 1.22: +0 -2 lines
Diff to previous 1.22
Handle invalid suffixes and overflow independently, so that
callers can treat them independently as needed.  Fix some bugs in
suffix handling.


Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Tue Sep 9 19:43:32 2003 UTC (20 years, 8 months ago) by eggert
Branch: MAIN
Changes since 1.21: +2 -18 lines
Diff to previous 1.21
Remove K&R cruft.


Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Wed Sep 3 19:57:54 2003 UTC (20 years, 8 months ago) by eggert
Branch: MAIN
Changes since 1.20: +3 -5 lines
Diff to previous 1.20
(human_readable): Fix bug that rounded 10501 to 10k.
Bug reported by Lute Kamstra in
<http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.


Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Thu Aug 14 23:00:25 2003 UTC (20 years, 9 months ago) by eggert
Branch: MAIN
Changes since 1.19: +2 -0 lines
Diff to previous 1.19
Include stdio.h, for sprintf.


Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Thu Jun 5 04:35:13 2003 UTC (20 years, 11 months ago) by eggert
Branch: MAIN
Changes since 1.18: +343 -198 lines
Diff to previous 1.18
Merge human.c changes from coreutils.


Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Thu May 29 07:21:59 2003 UTC (20 years, 11 months ago) by eggert
Branch: MAIN
Changes since 1.17: +3 -9 lines
Diff to previous 1.17
in lib:

	* addext.c, backupfile.c, fsusage.c, human.c, pathmax.h,
	rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h>
	without checking for HAVE_LIMITS_H.
	* backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c,
	xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed
	to do that.
	* fatal.c: Include <stdarg.h> without checking for __STDC__.
	* exclude.c: Include <stdbool.h> unconditionally.
	* tempname.c: Include <stddef.h> unconditionally.
	* hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
	* modechange.c, rpmatch.c (NULL): Don't define, since
	<stddef.h> does that.
	* quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
	* safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
	* safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed.
	* xstrtol.c: Likewise.
	* safe-read.c: Remove TYPE_SIGNED; no longer needed.
	* savedir.c: Include <stddef.h> instead of defining NULL.

in m4:

	* backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
	* fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
	* human.m4 (gl_HUMAN): Likewise.
	* pathmax.m4 (gl_PATHMAX): Likewise.
	* rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
	* userspec.m4 (gl_USERSPEC): Likewise.
	* xreadlink.m4 (gl_XREADLINK): Likewise.
	* m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
	* quote.m4 (gl_QUOTE): Don't check for stddef.h.


Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Tue Nov 5 21:45:29 2002 UTC (21 years, 6 months ago) by haible
Branch: MAIN
Changes since 1.16: +3 -7 lines
Diff to previous 1.16
Include gettext.h instead of <libintl.h> with #ifdefs.


Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Wed Dec 19 15:05:33 2001 UTC (22 years, 5 months ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-4_1_5, FILEUTILS-4_1_6, FILEUTILS-4_1_7, FILEUTILS-4_1_8, FILEUTILS-4_1_9, SH-UTILS-2_0_12, TEXTUTILS-2_0_20, TEXTUTILS-2_0_21
Changes since 1.15: +43 -19 lines
Diff to previous 1.15
(suffixes): Prefer K to k for 1024.
(generate_suffix_backwards): New function.
(human_readable_inexact): Use it.


Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Fri Jun 16 12:51:28 2000 UTC (23 years, 11 months ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-4_0_27, FILEUTILS-4_0_28, FILEUTILS-4_0_29, FILEUTILS-4_0_30, FILEUTILS-4_0_31, FILEUTILS-4_0_32, FILEUTILS-4_0_33, FILEUTILS-4_0_34, FILEUTILS-4_0_35, FILEUTILS-4_0_36, FILEUTILS-4_0_37, FILEUTILS-4_0_38, FILEUTILS-4_0_39, FILEUTILS-4_0_40, FILEUTILS-4_0_41, FILEUTILS-4_0_42, FILEUTILS-4_0_43, FILEUTILS-4_0_44, FILEUTILS-4_0_45, FILEUTILS-4_0v, FILEUTILS-4_0w, FILEUTILS-4_0x, FILEUTILS-4_0y, FILEUTILS-4_0z, FILEUTILS-4_1, FILEUTILS-4_1_1, FILEUTILS-4_1_2, FILEUTILS-4_1_3, FILEUTILS-4_1_4, SH-UTILS-2_0_11, SH-UTILS-2_0j, TEXTUTILS-2_0_10, TEXTUTILS-2_0_11, TEXTUTILS-2_0_12, TEXTUTILS-2_0_13, TEXTUTILS-2_0_14, TEXTUTILS-2_0_15, TEXTUTILS-2_0_16, TEXTUTILS-2_0_17, TEXTUTILS-2_0_18, TEXTUTILS-2_0_19, TEXTUTILS-2_0_8, TEXTUTILS-2_0_9, TEXTUTILS-2_0f, TEXTUTILS-2_0g
Changes since 1.14: +69 -47 lines
Diff to previous 1.14
(adjust_value): New function.
(human_readable_inexact): Apply rounding style even when
printing approximate values.


Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Thu Jun 15 12:21:10 2000 UTC (23 years, 11 months ago) by meyering
Branch: MAIN
Changes since 1.13: +42 -47 lines
Diff to previous 1.13
(human_readable_inexact): Allow an input block
size that is not a multiple of the output block size, and vice versa.


Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Sun Feb 27 17:54:25 2000 UTC (24 years, 2 months ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-4_0q, FILEUTILS-4_0r, FILEUTILS-4_0s, FILEUTILS-4_0t, FILEUTILS-4_0u, SH-UTILS-2_0g, SH-UTILS-2_0h, SH-UTILS-2_0i, TEXTUTILS-2_0e
Changes since 1.12: +1 -1 lines
Diff to previous 1.12
use double quotes, not single quotes around syntax-error-evoking string


Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sun Feb 27 17:40:24 2000 UTC (24 years, 2 months ago) by meyering
Branch: MAIN
Changes since 1.11: +4 -1 lines
Diff to previous 1.11
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.


Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Sun Nov 7 21:06:02 1999 UTC (24 years, 6 months ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-4_0j, FILEUTILS-4_0j-trial, FILEUTILS-4_0k, FILEUTILS-4_0l, FILEUTILS-4_0m, FILEUTILS-4_0n, FILEUTILS-4_0o, FILEUTILS-4_0p, SH-UTILS-2_0a, SH-UTILS-2_0b, SH-UTILS-2_0c, SH-UTILS-2_0d, SH-UTILS-2_0e, SH-UTILS-2_0f, TEXTUTILS-2_0a, TEXTUTILS-2_0b, TEXTUTILS-2_0c, TEXTUTILS-2_0d
Changes since 1.10: +12 -1 lines
Diff to previous 1.10
(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.


Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Sun Jul 4 08:47:28 1999 UTC (24 years, 10 months ago) by meyering
Branch: MAIN
CVS Tags: SH-UTILS-1_16l, SH-UTILS-1_16m, SH-UTILS-2_0, TEXTUTILS-1_22n, TEXTUTILS-1_22o, TEXTUTILS-1_22p, TEXTUTILS-1_22q, TEXTUTILS-2_0
Changes since 1.9: +31 -9 lines
Diff to previous 1.9
(human_readable): New function.
(human_readable_inexact): Renamed from human_readable, with new arg
INEXACT_STYLE.  Add support for ceiling and floor.


Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Mon May 17 13:03:46 1999 UTC (25 years ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-4_0i, SH-UTILS-1_16k, TEXTUTILS-1_22m
Changes since 1.8: +5 -4 lines
Diff to previous 1.8
(human_readable): Allow from_block_size to be zero.


Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Thu May 13 20:48:44 1999 UTC (25 years ago) by meyering
Branch: MAIN
CVS Tags: SH-UTILS-1_16j, TEXTUTILS-1_22l
Changes since 1.7: +6 -0 lines
Diff to previous 1.7
Include <string.h> or <strings.h> for strlen prototype.


Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sun Apr 25 19:18:55 1999 UTC (25 years, 1 month ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-4_0h, SH-UTILS-1_16h, SH-UTILS-1_16i, TEXTUTILS-1_22k
Changes since 1.6: +0 -4 lines
Diff to previous 1.6
Don't include inttypes.h here.


Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sun Apr 18 23:18:32 1999 UTC (25 years, 1 month ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-4_0g, SH-UTILS-1_16g, TEXTUTILS-1_22j
Changes since 1.5: +1 -1 lines
Diff to previous 1.5
Include xstrtol.h, not xstrtoul.h, since xstrtol.h now defines all the
xstrto... functions.


Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Fri Jan 1 06:47:04 1999 UTC (25 years, 4 months ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-4_0d, FILEUTILS-4_0e, FILEUTILS-4_0f, FILEUTILS-4_1-b2, FILEUTILS-4_1-b3, TEXTUTILS-1_22g, TEXTUTILS-1_22h, TEXTUTILS-1_22i
Changes since 1.4: +2 -2 lines
Diff to previous 1.4
(humblock): Use ARGMATCH in place of argmatch.


Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Wed Jul 22 18:30:16 1998 UTC (25 years, 10 months ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-3_16s, FILEUTILS-3_16t, FILEUTILS-3_16u, FILEUTILS-3_16v, FILEUTILS-3_16w, FILEUTILS-3_16x, FILEUTILS-3_16z, FILEUTILS-4_0, FILEUTILS-4_0-b2, FILEUTILS-4_0-b3, FILEUTILS-4_0-b4, FILEUTILS-4_0-b5, FILEUTILS-4_0-b6, FILEUTILS-4_0-b7, FILEUTILS-4_0-pre1, FILEUTILS-4_1-b1
Branch point for: fu-4_0
Changes since 1.3: +1 -1 lines
Diff to previous 1.3
(human_readable): amt -> damt, to fix typo when
computing which power to use after overflow occurs during
multiplication.

From Paul Eggert.


Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Mon Jun 29 15:23:04 1998 UTC (25 years, 10 months ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-3_16q, FILEUTILS-3_16r
Changes since 1.2: +104 -21 lines
Diff to previous 1.2
	* 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.


Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Sun Nov 30 11:10:24 1997 UTC (26 years, 5 months ago) by meyering
Branch: MAIN
CVS Tags: FILEUTILS-3_16g, FILEUTILS-3_16h, FILEUTILS-3_16i, FILEUTILS-3_16j, FILEUTILS-3_16k, FILEUTILS-3_16l, FILEUTILS-3_16m, FILEUTILS-3_16n, FILEUTILS-3_16o, FILEUTILS-3_16p, post-jumbo-LFS
Changes since 1.1: +13 -14 lines
Diff to previous 1.1
(human_readable): Convert to ANSI-style definition.
[lint]: Define `power'.


Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Nov 30 10:24:32 1997 UTC (26 years, 5 months ago) by meyering
Branch: MAIN
New file.  The interface is inspired
by the human_readable function that was in du.c, but it's pretty
much rewritten from scratch.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26