summaryrefslogtreecommitdiff
path: root/doc/intprops.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-05-19 01:34:14 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-05-19 01:49:57 -0700
commit48cc7484c740d7f0e84fccd1fde11059986e3b94 (patch)
treef99bb64647f7b81efa5062dd8add179e7d12302d /doc/intprops.texi
parentd3455c00b721eb7440419f2d10d50d35c5e7525a (diff)
downloadgnulib-48cc7484c740d7f0e84fccd1fde11059986e3b94.tar.gz
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....)
Diffstat (limited to 'doc/intprops.texi')
-rw-r--r--doc/intprops.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/intprops.texi b/doc/intprops.texi
index b4a8c6a610..6419201798 100644
--- a/doc/intprops.texi
+++ b/doc/intprops.texi
@@ -57,14 +57,15 @@ while the second, for integer types, is easier to use.
@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: