changeset 14759:0f9cae3e684f

intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs * doc/intprops.texi (Integer Type Determination): Fix documentation for TYPE_IS_INTEGER: it returns an constant expression, not an integer constant expression. Fix doc for TYPE_SIGNED: it returns an integer constant expression only if its argument is an integer type. (TYPE_IS_INTEGER is the same, but is hardly worth documented that way....)
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 19 May 2011 01:34:14 -0700
parents 0ed8de9d6bbe
children fd6c5b527040
files ChangeLog doc/intprops.texi
diffstat 2 files changed, 14 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+	intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
+	* doc/intprops.texi (Integer Type Determination): Fix
+	documentation for TYPE_IS_INTEGER: it returns an constant
+	expression, not an integer constant expression.  Fix doc for
+	TYPE_SIGNED: it returns an integer constant expression only if its
+	argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
+	hardly worth documented that way....)
+
 2011-05-18  Bruno Haible  <bruno@clisp.org>
 
 	strerror_r: Avoid clobbering the strerror buffer when possible.
--- a/doc/intprops.texi
+++ b/doc/intprops.texi
@@ -57,14 +57,15 @@
 @subsection Integer Type Determination
 
 @findex TYPE_IS_INTEGER
-@code{TYPE_IS_INTEGER (@var{t})} expands to an integer constant
+@code{TYPE_IS_INTEGER (@var{t})} expands to a constant
 expression that is 1 if the arithmetic type @var{t} is a integer type.
 @code{_Bool} counts as an integer type.
 
 @findex TYPE_SIGNED
-@code{TYPE_SIGNED (@var{t})} expands to an integer constant expression
+@code{TYPE_SIGNED (@var{t})} expands to a constant expression
 that is 1 if the arithmetic type @var{t} is a signed integer type or a
-floating type.
+floating type.  If @var{t} is an integer type, @code{TYPE_SIGNED (@var{t})}
+expands to an integer constant expression.
 
 Example usage: