changeset 3208:daf2762a353c

* etags.c: Replace the CPP tangle for alloca with the one from the autoconf documentation, since that's working elsewhere.
author Jim Blandy <jimb@redhat.com>
date Fri, 28 May 1993 08:28:20 +0000
parents 257a856de952
children 1166db56c752
files lib-src/etags.c
diffstat 1 files changed, 15 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Fri May 28 07:39:58 1993 +0000
+++ b/lib-src/etags.c	Fri May 28 08:28:20 1993 +0000
@@ -35,15 +35,22 @@
 
 #include "getopt.h"
 
-#ifdef	__GNUC__
-#define	alloca	__builtin_alloca
-#else
-#ifdef	sparc
+/* AIX requires this to be the first thing in the file. */
+#ifdef __GNUC__
+#ifndef alloca
+#define alloca __builtin_alloca
+#endif
+#else /* not __GNUC__ */
+#if HAVE_ALLOCA_H
 #include <alloca.h>
-#else
-extern char *alloca ();
-#endif
-#endif
+#else /* not HAVE_ALLOCA_H */
+#ifdef _AIX
+ #pragma alloca
+#else /* not _AIX */
+char *alloca ();
+#endif /* not _AIX */
+#endif /* not HAVE_ALLOCA_H */
+#endif /* not __GNUC__ */
 
 extern char *malloc (), *realloc ();
 extern char *getenv ();