From: Paul Eggert Date: Thu, 19 May 2011 08:34:14 +0000 (-0700) Subject: intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs X-Git-Tag: stable/20110609~99 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=a5f84839b0a4b17c9c89c648b784cdcda7556a7c;p=gnulib.git 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....) (cherry picked from commit 48cc7484c740d7f0e84fccd1fde11059986e3b94) --- diff --git a/ChangeLog b/ChangeLog index 99e2c3e70..b8cba5270 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2011-05-19 Paul Eggert + + 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 Eric Blake fnmatch: avoid compiler warning diff --git a/NEWS.stable b/NEWS.stable index 56149080d..41e4ef841 100644 --- a/NEWS.stable +++ b/NEWS.stable @@ -1,6 +1,20 @@ Gnulib stable snapshot ---------------------- + * 20110609-stable + +Snapshot taken based on: + +commit 0c4be75eb0966bde4533bc111778e0ab494a93be +Date: Wed May 18 13:13:03 2011 -0600 + +with the following additional commits: + + * [48cc748]->[] intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs +__NEXTCOMMITMARKER__ + +---------------------------------------------------------------------- + * 20110412-stable Snapshot taken based on: diff --git a/doc/intprops.texi b/doc/intprops.texi index b4a8c6a61..641920179 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: