intprops: avoid evaluation of some expressions
commit5c93a6b67a4e56bb9fe84cf173cf8cc18101bc99
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Aug 2018 01:31:44 +0000 (27 18:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Aug 2018 01:34:14 +0000 (27 18:34 -0700)
tree860b1337eb5dac4886668842cfbb3d8ce5e2071c
parent53e2c179f26a890fa6685af4b6c1397ee370433b
intprops: avoid evaluation of some expressions

This makes EXPR_SIGNED (e) easier to use, as it no longer
evaluates the expression E.  Formerly, E was required to be free
of side effects.
* lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
(EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
(_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
ChangeLog
lib/intprops.h