aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-05-28 08:28:20 +0000
committerJim Blandy1993-05-28 08:28:20 +0000
commit5c851ea7d35fa9027b5fb9e52472bdad71c02644 (patch)
tree7d8424cd2289ecb15a84f9ff78de89bf0ff0badf
parent3233bbe1dee78aa755c93533d2af4968b8d46b49 (diff)
downloademacs-5c851ea7d35fa9027b5fb9e52472bdad71c02644.tar.gz
emacs-5c851ea7d35fa9027b5fb9e52472bdad71c02644.zip
* etags.c: Replace the CPP tangle for alloca with the one from the
autoconf documentation, since that's working elsewhere.
-rw-r--r--lib-src/etags.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index dd1153e2054..a829fdc35a8 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -35,15 +35,22 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
35 35
36#include "getopt.h" 36#include "getopt.h"
37 37
38#ifdef __GNUC__ 38/* AIX requires this to be the first thing in the file. */
39#define alloca __builtin_alloca 39#ifdef __GNUC__
40#else 40#ifndef alloca
41#ifdef sparc 41#define alloca __builtin_alloca
42#include <alloca.h>
43#else
44extern char *alloca ();
45#endif
46#endif 42#endif
43#else /* not __GNUC__ */
44#if HAVE_ALLOCA_H
45#include <alloca.h>
46#else /* not HAVE_ALLOCA_H */
47#ifdef _AIX
48 #pragma alloca
49#else /* not _AIX */
50char *alloca ();
51#endif /* not _AIX */
52#endif /* not HAVE_ALLOCA_H */
53#endif /* not __GNUC__ */
47 54
48extern char *malloc (), *realloc (); 55extern char *malloc (), *realloc ();
49extern char *getenv (); 56extern char *getenv ();