diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index f3007c50836..4276c59d8a9 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -26,25 +26,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 26 | * Sam Kendall added C++. | 26 | * Sam Kendall added C++. |
| 27 | */ | 27 | */ |
| 28 | 28 | ||
| 29 | #ifdef HAVE_CONFIG_H | ||
| 29 | #include "../src/config.h" | 30 | #include "../src/config.h" |
| 30 | #undef static | ||
| 31 | |||
| 32 | /* AIX requires this to be the first thing in the file. */ | ||
| 33 | #ifdef __GNUC__ | ||
| 34 | #ifndef alloca | ||
| 35 | #define alloca __builtin_alloca | ||
| 36 | #endif | 31 | #endif |
| 37 | #else /* not __GNUC__ */ | ||
| 38 | #if HAVE_ALLOCA_H | ||
| 39 | #include <alloca.h> | ||
| 40 | #else /* not HAVE_ALLOCA_H */ | ||
| 41 | #ifdef _AIX | ||
| 42 | #pragma alloca | ||
| 43 | #else /* not _AIX */ | ||
| 44 | char *alloca (); | ||
| 45 | #endif /* not _AIX */ | ||
| 46 | #endif /* not HAVE_ALLOCA_H */ | ||
| 47 | #endif /* not __GNUC__ */ | ||
| 48 | 32 | ||
| 49 | #include <stdio.h> | 33 | #include <stdio.h> |
| 50 | #include <ctype.h> | 34 | #include <ctype.h> |
| @@ -548,7 +532,7 @@ main (argc, argv) | |||
| 548 | char cmd[100]; | 532 | char cmd[100]; |
| 549 | int i; | 533 | int i; |
| 550 | unsigned int nincluded_files = 0; | 534 | unsigned int nincluded_files = 0; |
| 551 | char **included_files = (char **) alloca (argc * sizeof (char *)); | 535 | char **included_files = xnew (argc, char *); |
| 552 | char *this_file; | 536 | char *this_file; |
| 553 | #ifdef VMS | 537 | #ifdef VMS |
| 554 | char got_err; | 538 | char got_err; |