[resend] unistr: New modules for backward iteration in string.

2011-02-14 Thread Ben Pfaff
This is the third time that I have sent this patch. The first time was in November. The second time, which was slightly refined compared to the first version, was in January. This third posting is identical to the second version, except that I rebased it. I have not re-tested the rebased versio

Re: [PATCH] vasnprintf: silence some clang false positives

2011-02-14 Thread Bruno Haible
Hi Eric, > Bruno, would you be okay with this patch? > + * lib/vasnprintf.c (VASNPRINTF) [ENSURE_ALLOCATION]: Teach clang > + that ENSURE_ALLOCATION guarantees a non-null result. > +else if (!result) > \ > + abort () No, t

Re: [PATCH] stdlib: support non-GCC __attribute__

2011-02-14 Thread Bruno Haible
Paul Eggert wrote: > These look good to me too. OK, I pushed them. Bruno -- In memoriam Dora Gerson

Re: [PATCH] stdlib: support non-GCC __attribute__

2011-02-14 Thread Paul Eggert
On 02/13/2011 02:58 PM, Bruno Haible wrote: Objections to these patches? Jim? Paul? These look good to me too. Thanks, Bruno.

[PATCH] vasnprintf: silence some clang false positives

2011-02-14 Thread Eric Blake
Clang does not realize that result can only ever be NULL when allocated==0, or that (needed) is always positive so that the true branch will always be taken when result starts life as NULL. Adding a false branch fixes the analysis, even though the false branch will never be taken. * lib/vasnprint