mbrtoc32, c32rtomb: fix compilation failures on Haiku

2020-05-08 Thread Bruno Haible
On a new Haiku/x86_64 system, a gnulib testdir shows these compilation errors: ../../gllib/mbrtoc32.c:86:1: error: redefinition of 'mbrtoc32' mbrtoc32 (char32_t *pwc, const char *s, size_t n, mbstate_t *ps) ^~~~ In file included from ./uchar.h:32, from ../../gllib/mbrtoc32.c

limits-h: Define LONG_BIT correctly on Haiku/x86_64

2020-05-08 Thread Bruno Haible
On a new Haiku/x86_64, testing a POSIX testdir produces a build failure: In file included from ../../gltests/test-limits-h.c:23: ../../gltests/../gllib/verify.h:216:41: error: static assertion failed: "verify ((0x7fffL) >> ((32) - 1 - (((-0x7fffL - 1L)) < 0)) == 1)" # de

Re: Add gl_list_remove_last to list/xlist

2020-05-08 Thread Bruno Haible
Hi Marc, > Just one note: The documentation needs to be updated in section 14.8 > as well ([1]). Right. Thank you for the reminder. Done through the patch below. Note that it can take a couple of months until the doc on www.gnu.org is updated; we don't push a doc update that frequently. 2020-05

more uses for the 'attribute' module

2020-05-08 Thread Bruno Haible
These patches enable the use of the 'attribute' module in a couple of more places. And fix a typo. 2020-05-08 Bruno Haible ignore-value tests: Use module 'attribute'. * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo. * tests/test-ignore-value.c: Include attribute.h.