diff options
| author | Jim Blandy | 1993-05-28 08:28:20 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-28 08:28:20 +0000 |
| commit | 5c851ea7d35fa9027b5fb9e52472bdad71c02644 (patch) | |
| tree | 7d8424cd2289ecb15a84f9ff78de89bf0ff0badf | |
| parent | 3233bbe1dee78aa755c93533d2af4968b8d46b49 (diff) | |
| download | emacs-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.c | 23 |
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 | ||
| 44 | extern 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 */ | ||
| 50 | char *alloca (); | ||
| 51 | #endif /* not _AIX */ | ||
| 52 | #endif /* not HAVE_ALLOCA_H */ | ||
| 53 | #endif /* not __GNUC__ */ | ||
| 47 | 54 | ||
| 48 | extern char *malloc (), *realloc (); | 55 | extern char *malloc (), *realloc (); |
| 49 | extern char *getenv (); | 56 | extern char *getenv (); |