]> Savannah Git Hosting - gnulib.git/commit
limits-h: Provide numerical limits macros.
authorBruno Haible <bruno@clisp.org>
Thu, 6 Sep 2018 12:28:38 +0000 (14:28 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Sep 2018 12:28:38 +0000 (14:28 +0200)
commit09b59d2814db9d80fe61cc4259a83e9b68078e35
tree6cbc765faf8896dfe54a4984f5a64d6acfeb8c76
parent8ac1b3f73baceb4a16e99504807d23d38e5123b1
limits-h: Provide numerical limits macros.

* lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
IRIX and for GCC.
(WORD_BIT, LONG_BIT): Define.
* m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
<limits.h> does not define LLONG_MAX or WORD_BIT.
* tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
TYPE_MAXIMUM): New macros, from intprops.h.
Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
* doc/posix-headers/limits.texi: Document what the 'limits-h' module
provides.
ChangeLog
doc/posix-headers/limits.texi
lib/limits.in.h
m4/limits-h.m4
tests/test-limits-h.c