Re: large integer truncation in regex module

2012-03-24 Thread Paul Eggert
On 03/24/2012 09:28 PM, Gianluigi Tiesi wrote: While compiling regex module one android I've discovered a problem that on other 32bit compiler is only a warning ... it's correct, but I think an ifdef may be used instead since BITSET_WORD_BITS is a define Generally speaking we prefer 'if (xx

Re: android bionc has dummy lconv

2012-03-24 Thread Gianluigi Tiesi
On 25/03/2012 6.32, Gianluigi Tiesi wrote: Android bionic c library has a dummy definition of struct lconv, so the detection code thinks the struct it's at least defined. Instead in locale.h: sorry (sent the first email by mistake) #if 1 /* MISSING FROM BIONIC - DEFINED TO MAKE libstdc++-v3

android bionc has dummy lconv

2012-03-24 Thread Gianluigi Tiesi
Android bionic c library has a dummy definition of struct lconv, so the detection code thinks the struct it's at least defined. Instead in locale.h: -- Gianluigi Tiesi EDP Project Leader Netfarm S.r.l. - http://www.netfarm.it/ Free Software: http://oss.netfarm.it/ Q: Because it reverses the l

large integer truncation in regex module

2012-03-24 Thread Gianluigi Tiesi
While compiling regex module one android I've discovered a problem that on other 32bit compiler is only a warning in regcomp.c at 961 dfa->word_char[0] = UINT64_C (0x03ff); dfa->word_char[1] = UINT64_C (0x07fe87fe); the datatype is defined as unsigned long but s

more uses of attribute 'pure'

2012-03-24 Thread Bruno Haible
gcc-4.7 was released. It apparently fixes bug #50021 . So the option -Wsuggest-attribute=pure is a little bit more useful than before. I tried it, and it gave me an understanding of what attribute 'pure' means (together with the GCC doc, of course,

gnulib-tool: avoid unintended error output

2012-03-24 Thread Bruno Haible
Hi, Running gnulib-tool in the libunistring package, I see these messages: Updating file lib/uniwidth/cjk.h (backup in lib/uniwidth/cjk.h~) Updating file lib/wcwidth.c (backup in lib/wcwidth.c~) cmp: EOF on ./tests/macros.h Updating file tests/macros.h (backup in tests/macros.h~) Updati