summaryrefslogtreecommitdiff
path: root/modules/alloca
diff options
context:
space:
mode:
Diffstat (limited to 'modules/alloca')
-rw-r--r--modules/alloca46
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/alloca b/modules/alloca
new file mode 100644
index 0000000000..4d32288ce2
--- /dev/null
+++ b/modules/alloca
@@ -0,0 +1,46 @@
+Description:
+
+Files:
+lib/alloca.c
+m4/alloca.m4
+
+Depends-on:
+xalloc
+
+configure.ac:
+gl_FUNC_ALLOCA
+
+Makefile.am:
+
+Include:
+#ifdef __GNUC__
+# ifndef alloca
+# define alloca __builtin_alloca
+# endif
+#else
+# ifdef _MSC_VER
+# include <malloc.h>
+# define alloca _alloca
+# else
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifdef __hpux /* This section must match that of bison generated files. */
+# ifdef __cplusplus
+extern "C" void *alloca (unsigned int);
+# else /* not __cplusplus */
+void *alloca ();
+# endif /* not __cplusplus */
+# else /* not __hpux */
+# ifndef alloca
+char *alloca ();
+# endif
+# endif /* __hpux */
+# endif
+# endif
+# endif
+#endif
+