Jim Meyering
3cf7eece6f
Remove duplicate include of <stdio.h>.
1998-07-29 04:00:36 +00:00
Jim Meyering
19c23eefb7
Include <stdio.h> if NDEBUG is not defined; needed on SunOS 4.
...
From Paul Eggert.
1998-07-22 16:57:15 +00:00
Jim Meyering
bca292d9e6
Include stdio.h. Required on some systems when using assert.
...
From Kaveh Ghazi.
1998-07-04 17:15:08 +00:00
Jim Meyering
d05618c5c2
Don't define NDEBUG, now that it's done via configure's --disable-assert option.
1998-07-01 12:44:22 +00:00
Jim Meyering
1d2074e02a
protoize
1998-06-29 20:29:28 +00:00
Jim Meyering
476cb02516
* lib/xstrtol.c (bkm_scale): Don't assume that you can convert
...
unsigned long to double without losing information.
(bkm_scale_by_power): New function.
* lib/xstrtol.c (__xstrtol), src/dd.c (parse_integer):
Add support for SI-like suffixes like "GB" and "TD".
* src/dd.c (usage): Describe it.
1998-06-29 15:24:43 +00:00
Jim Meyering
45e8e5c550
Merge with the version from textutils.
1998-03-31 13:14:22 +00:00
Jim Meyering
84ad5c47c8
(TYPE_SIGNED): Define.
...
(TYPE_MAXIMUM): Define.
(ULONG_MAX): Use TYPE_MAXIMUM.
(LONG_MAX): Use TYPE_MAXIMUM.
1998-02-24 23:33:41 +00:00
Jim Meyering
186d893f27
(__xstrtol): Change interpretation of
...
VALID_SUFFIXES == NULL vs VALID_SUFFIXES == "". Use the former
when any suffix is valid, the later when no suffix is allowed.
1997-01-25 06:13:46 +00:00
Jim Meyering
33b2a8a1ae
.
1996-10-29 13:57:43 +00:00
Jim Meyering
9b3498acb2
.
1996-10-17 02:46:33 +00:00
Jim Meyering
ffc5c802c4
libitize
1996-10-17 02:45:32 +00:00
Jim Meyering
41dfaf296a
(__xstrtol): Return an error for invalid suffix.
...
Before, e.g., `split -b 1M' would be silently accepted and treated
like `split -b 1'. Reported by Franc,ois.
1996-10-13 17:58:50 +00:00
Jim Meyering
2df44bba5b
Add copyright header.
1996-05-22 12:37:29 +00:00
Jim Meyering
b5c8c81d4d
Indent cpp directives to reflect nesting.
1995-10-09 03:48:08 +00:00
Jim Meyering
ec651d2263
(__strtol): Remove prototype altogether.
...
Move inclusion of xstrtol.h back so that it follows system headers.
1995-05-22 04:43:36 +00:00
Jim Meyering
7f9311c20e
merge with 1.11.1b
1995-05-21 11:44:22 +00:00
Jim Meyering
b554fee401
.
1995-01-27 05:22:23 +00:00
Jim Meyering
72bb9e6307
Rearrange to accept a user-specified set of suffix chars (must be
...
a subset of master list), each with a hard-coded value.
1994-12-22 05:10:32 +00:00
Jim Meyering
3205d087e2
.
1994-12-20 04:17:23 +00:00