summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-07-09 19:44:58 +0000
committerJim Blandy <jimb@redhat.com>1993-07-09 19:44:58 +0000
commitfa9b0e54edd95a499be1f19dd7986c2242867bbd (patch)
tree190bfcc4a157b1825f629d8c49845132f1a9be39 /lib-src
parentbde416f80edd03cbb02cfbb1b1db980bd0f6cd7e (diff)
downloademacs-fa9b0e54edd95a499be1f19dd7986c2242867bbd.tar.gz
* 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.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c20
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. */
* 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 <alloca.h>
-#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 <stdio.h>
#include <ctype.h>
@@ -548,7 +532,7 @@ main (argc, argv)
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;