File indexing completed on 2025-01-26 04:44:00

0001 /* ------------------------------------------------------------------------
0002 @NAME       : my_alloca.h
0003 @DESCRIPTION: All-out assault at making alloca() available on any Unix
0004               platform.  Stolen from the GNU Autoconf manual.
0005 @CREATED    : 1997/10/30, Greg Ward
0006 @VERSION    : $Id: my_alloca.h,v 1.1 1997/10/31 03:56:17 greg Rel $
0007 @COPYRIGHT  : This file is part of the btparse library.  This library is
0008               free software; you can redistribute it and/or modify it under
0009               the terms of the GNU General Public License as
0010               published by the Free Software Foundation; either version 2
0011               of the License, or (at your option) any later version.
0012 -------------------------------------------------------------------------- */
0013 
0014 #ifndef MY_ALLOCA_H
0015 #define MY_ALLOCA_H
0016 
0017 #ifdef __GNUC__
0018 # ifndef alloca
0019 #  define alloca __builtin_alloca
0020 # endif
0021 #else
0022 # if HAVE_ALLOCA_H
0023 #  include <alloca.h>
0024 # else
0025 #  ifdef _AIX
0026 #   pragma alloca
0027 #  else
0028 #   ifndef alloca                       /* predefined by HP cc +Olibcalls */
0029 char *alloca ();
0030 #   endif
0031 #  endif
0032 # endif
0033 #endif
0034 
0035 #endif /* MY_ALLOCA_H */