diff options
| author | Jim Blandy | 1993-07-09 19:44:58 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-07-09 19:44:58 +0000 |
| commit | 72a339d7e3fab18a50233dce97eab9d9d95c3932 (patch) | |
| tree | b29a0b67bd862634959e1a247fc7e65638f2b91d /lib-src | |
| parent | 591fa824dd089b7f499cb42cd88c671576f4ed06 (diff) | |
| download | emacs-72a339d7e3fab18a50233dce97eab9d9d95c3932.tar.gz emacs-72a339d7e3fab18a50233dce97eab9d9d95c3932.zip | |
* 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.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; |