diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-03-09 19:24:15 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-03-09 19:24:15 +0000 |
commit | 6c5e34b431210cdb70d0451adf47cb55948edbc0 (patch) | |
tree | 021ba294cf8e4f0c018f9c7ebcf1344b5b4daa54 /lib | |
parent | cb675ad06252e16b752529fff29d19a1100eda9f (diff) | |
download | coreutils-6c5e34b431210cdb70d0451adf47cb55948edbc0.tar.xz |
Adjust comments to match intprops.h.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/strtol.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/strtol.c b/lib/strtol.c index e2b1589a7..a95a76508 100644 --- a/lib/strtol.c +++ b/lib/strtol.c @@ -1,6 +1,6 @@ /* Convert string representation of a number into an integer value. - Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2003 + Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2003, 2005 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C @@ -124,11 +124,19 @@ extern int errno; # define STRTOL_LONG_MAX LONG_LONG_MAX # define STRTOL_ULONG_MAX ULONG_LONG_MAX -/* The extra casts work around common compiler bugs, - e.g. Cray C 5.0.3.0 when t == time_t. */ +/* The extra casts in the following macros work around compiler bugs, + e.g., in Cray C 5.0.3.0. */ + +/* True if the arithmetic type T is signed. */ # ifndef TYPE_SIGNED # define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) # endif + +/* The maximum and minimum values for the integer type T. These + macros have undefined behavior if T is signed and has padding bits + (i.e., bits that do not contribute to the value), or if T uses + signed-magnitude representation. If this is a problem for you, + please let us know how to fix it for your host. */ # ifndef TYPE_MINIMUM # define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \ ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) \ |