summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-03-18 09:37:54 +0000
committerJim Meyering <jim@meyering.net>2005-03-18 09:37:54 +0000
commit500175daeda571582f71e946a3b1e25da9f8a3af (patch)
tree216f882b7e353a61c12cd0c8ccdfb6ada8faceba
parentaa450da5269497437ce888bfefdf8175b854096c (diff)
downloadcoreutils-500175daeda571582f71e946a3b1e25da9f8a3af.tar.xz
Add comments for new macros.
-rw-r--r--src/system.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/system.h b/src/system.h
index acd8a5203..c7c16dd7a 100644
--- a/src/system.h
+++ b/src/system.h
@@ -818,6 +818,8 @@ ptr_align (void *ptr, size_t alignment)
#define VERIFY_EXPR(assertion) \
(void)((struct {char a[(assertion) ? 1 : -1]; } *) 0)
+/* Use the compile-time type-max. assertion only if the compiler provides
+ the __typeof__ operator. */
#if HAVE_TYPEOF
# define VERIFY_W_TYPEOF(assertion) VERIFY_EXPR (assertion)
#else
@@ -826,9 +828,9 @@ ptr_align (void *ptr, size_t alignment)
/* If 10*Accum+Digit_val is larger than Type_max, then don't update Accum
and return nonzero. Otherwise, set Accum to that new value and
- return zero. When compiling with gcc, perform a compile-time check
- to verify that the specified Type_max constant is the same as the
- constant derived from the type of Accum. */
+ return zero. With a compiler that provides the __typeof__ operator,
+ perform a compile-time check to verify that the specified Type_max
+ constant is the same as the constant derived from the type of Accum. */
#define DECIMAL_DIGIT_ACCUMULATE(Accum, Digit_val, Type_max) \
( \
/* Ensure that Type_max is the maximum value of Accum. */ \