summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-03-26 18:08:24 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-03-26 18:08:24 +0000
commit5bb064a2615010ba9a787983739220705f892795 (patch)
tree561e1f80bce861231ccc71bbb9007e589d6a4df3 /lib
parent759ae5e688aaf90730e801a2d8c41ab8d2f36eb7 (diff)
downloadcoreutils-5bb064a2615010ba9a787983739220705f892795.tar.xz
Propagate intprops.h comment fixes to mktime.c and strftime.c.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog1
-rw-r--r--lib/mktime.c6
-rw-r--r--lib/strftime.c2
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index d44aa0d38..f5e776e0d 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -3,6 +3,7 @@
* intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
"one's complement" -> "ones' complement" in comment, as per Knuth.
"value of type" -> "type or expression" in comment.
+ * mktime.c, strftime.c: Propagate intprops.h comment nits.
2005-03-26 Jim Meyering <jim@meyering.net>
diff --git a/lib/mktime.c b/lib/mktime.c
index 300607c4b..916bdbd3e 100644
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -68,9 +68,9 @@
an integer. */
#define TYPE_IS_INTEGER(t) ((t) 1.5 == 1)
-/* True if negative values of the signed integer type T use twos
- complement, ones complement, or signed magnitude representation,
- respectively. Much GNU code assumes twos complement, but some
+/* True if negative values of the signed integer type T use two's
+ complement, ones' complement, or signed magnitude representation,
+ respectively. Much GNU code assumes two's complement, but some
people like to be portable to all possible C hosts. */
#define TYPE_TWOS_COMPLEMENT(t) ((t) ~ (t) 0 == (t) -1)
#define TYPE_ONES_COMPLEMENT(t) ((t) ~ (t) 0 == 0)
diff --git a/lib/strftime.c b/lib/strftime.c
index 71052daeb..c50996efb 100644
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -120,7 +120,7 @@ extern char *tzname[];
? (a) >> (b) \
: (a) / (1 << (b)) - ((a) % (1 << (b)) < 0))
-/* Bound on length of the string representing an integer value or type T.
+/* Bound on length of the string representing an integer type or expression T.
Subtract 1 for the sign bit if t is signed; log10 (2.0) < 146/485;
add 1 for integer division truncation; add 1 more for a minus sign
if needed. */