00001 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00002 /* Memory allocation on the stack. 00003 00004 Copyright (C) 1995, 1999, 2001-2004, 2006-2007 Free Software 00005 Foundation, Inc. 00006 00007 This program is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU Lesser General Public License as published 00009 by the Free Software Foundation; either version 2.1, or (at your option) 00010 any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this program; if not, write to the Free Software 00019 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00020 USA. */ 00021 00022 /* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H 00023 means there is a real alloca function. */ 00024 #ifndef _GL_ALLOCA_H 00025 #define _GL_ALLOCA_H 00026 00027 /* alloca (N) returns a pointer to N bytes of memory 00028 allocated on the stack, which will last until the function returns. 00029 Use of alloca should be avoided: 00030 - inside arguments of function calls - undefined behaviour, 00031 - in inline functions - the allocation may actually last until the 00032 calling function returns, 00033 - for huge N (say, N >= 65536) - you never know how large (or small) 00034 the stack is, and when the stack cannot fulfill the memory allocation 00035 request, the program just crashes. 00036 */ 00037 00038 #ifndef alloca 00039 # ifdef __GNUC__ 00040 # define alloca __builtin_alloca 00041 # elif defined _AIX 00042 # define alloca __alloca 00043 # elif defined _MSC_VER 00044 # include <malloc.h> 00045 # define alloca _alloca 00046 # else 00047 # include <stddef.h> 00048 # ifdef __cplusplus 00049 extern "C" 00050 # endif 00051 void *alloca (size_t); 00052 # endif 00053 #endif 00054 00055 #endif /* _GL_ALLOCA_H */
1.5.6