1 /* Definitions for alloca (mostly extracted from AC_FUNC_ALLOCA). According
2 to the autoconf manual in dome versions of AIX the declaration of alloca
3 has to precede everything else execept comments and prepocessor directives,
4 i.e. including this file has to preceed anything else.
6 NOTE: alloca is redefined as malloc on systems which fail to support alloca.
7 Don't include this header if you frequently use alloca in order to avoid an
8 unlimited amount of memory leaks.
9 popt uses alloca only during program startup, i.e. the memory leaks caused
10 by this redefinition are limited.
13 #ifndef MC_POPTALLOCA_H
14 #define MC_POPTALLOCA_H
16 /* AIX requires this to be the first thing in the file. */
18 # define alloca __builtin_alloca
22 # define alloca _alloca
30 # ifndef alloca /* predefined by HP cc +Olibcalls */
40 # if !defined(STDC_HEADERS) && defined(HAVE_MALLOC_H)
43 # define alloca malloc