# HG changeset patch # User Jim Blandy # Date 742247098 0 # Node ID 9535e8ffb209efcf7654756457a34b3ba99c231b # Parent 73aa16fc728d4a592e35fce7c8088dc3ccd593d6 * etags.c (alloca): removed all references to it. (main): now calls xnew instead of alloca for portability. (../src/config.h): included only if HAVE_CONFIG_H. (const): void definition removed--config.h takes care of it. diff -r 73aa16fc728d -r 9535e8ffb209 lib-src/etags.c --- a/lib-src/etags.c Fri Jul 09 18:56:47 1993 +0000 +++ b/lib-src/etags.c Fri Jul 09 19:44:58 1993 +0000 @@ -26,25 +26,9 @@ * Sam Kendall added C++. */ +#ifdef HAVE_CONFIG_H #include "../src/config.h" -#undef static - -/* 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 -#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__ */ #include #include @@ -548,7 +532,7 @@ char cmd[100]; int i; unsigned int nincluded_files = 0; - char **included_files = (char **) alloca (argc * sizeof (char *)); + char **included_files = xnew (argc, char *); char *this_file; #ifdef VMS char got_err;