Re: xalloc.h (x2nrealloc): Don't always double the buffer size.

2007-02-03 Thread Paul Eggert
Jim Meyering <[EMAIL PROTECTED]> writes: > - if (((size_t) -1) / 2 / s < n) > + if ((2 * (((size_t) -1 - 1) / 3)) / s < n) That's not quite right. As an extreme case, suppose S is SIZE_MAX/4 + 1 and N is 2. Then (2 * (((size_t) -1 - 1) / 3)) / S evaluates to 2 and N will appear to be

Re: gl_STDARG_H on AIX 5.3 with IBM v8 C compiler

2007-02-03 Thread Paul Eggert
Albert Chin <[EMAIL PROTECTED]> writes: > It looks like the only way > to get the builtin va_copy() to work on AIX 5.3 is to add > -qlanglvl=extc99 to CFLAGS? For what it's worth, we should be encouraging that anyway. AC_PROG_CC_STDC should add -qlanglvl=extc99 to CC, and if this isn't working th

Re: AIX incorrectly detects strndup

2007-02-03 Thread Paul Eggert
Matthew Woehlke <[EMAIL PROTECTED]> writes: > ...for some reason, configure on AIX is incorrectly thinking that it > has strndup (declared, anyway) from the OS, when it does not UNLESS > '_ALL_SOURCE' is defined. But _ALL_SOURCE is defined. At least, it should be, in config.h. Can you check what