|
From: SONE T. <ts...@cm...> - 2000-12-08 09:53:30
|
On Thu, Dec 07, 2000 at 05:28:38PM -0800, Paul Garceau wrote: > On 7 Dec 2000, at 22:23, the Illustrious Niels Diepeveen wrote: > > Has anyone ever used _alloca()? > > I think it may be broken. > Try using malloc() instead. Afaik, _alloca() is a Unix call, and > is not part of the mingw runtime headers...nor is allocate(). alloca() is a built-in function in both GCC and MSVC. (no underscore in GCC) I've been using it without a problem. GCC itself uses it also. Changing alloca() to malloc() generally means massive change in source code, since it implies addition of explicit calls to free(). There is a C implementation of alloca() in libiberty, though. -- Takeshi |