Re: Recommended alloca declaration breaks on alloca.c

2005-04-10 Thread James Youngman
On Sun, Apr 10, 2005 at 02:02:20PM +0200, Hrvoje Niksic wrote: > It turns out that the alloca declaration that the Autoconf manual[1] > recommends for config.h declares alloca() as returning char *, whereas > the C implementation I use declares it as returning void *. But > regardless of alloca.c,

Re: Recommended alloca declaration breaks on alloca.c

2005-04-10 Thread Hrvoje Niksic
[EMAIL PROTECTED] (James Youngman) writes: > On Sun, Apr 10, 2005 at 02:02:20PM +0200, Hrvoje Niksic wrote: >> It turns out that the alloca declaration that the Autoconf manual[1] >> recommends for config.h declares alloca() as returning char *, whereas >> the C implementation I use declares it as

Re: Recommended alloca declaration breaks on alloca.c

2005-04-10 Thread Paul Eggert
Hrvoje Niksic <[EMAIL PROTECTED]> writes: > I fixed this problem by changing the declaration from "char > *alloca();" to "void *alloca();". Is there a better fix, or should > the manual be updated for alloca to return void *? Thanks for reporting this. The manual should be updated, for this and

Recommended alloca declaration breaks on alloca.c

2005-04-10 Thread Hrvoje Niksic
I tried to compile Wget with "tcc", a tiny fast Linux compiler that happens to not implement alloca. Since Wget's configure checks for alloca and the source includes the C alloca implementation, it should (in theory) work anyway. However, I got a compiler error: tcc -I. -I.-DHAVE_CONFIG_H -D