diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-12-31 06:44:45 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-12-31 06:44:45 -0800 |
commit | 5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34 (patch) | |
tree | b3cdd6a5b6327ca3c51e7135b5b5d1652a57a84f | |
parent | 01cba3d1044ab5199ab6108c9c7cc2a8f276819b (diff) | |
download | txr-5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34.tar.gz txr-5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34.tar.bz2 txr-5e4c74dfd5927b3829b4f5e04a7964dbac6a4f34.zip |
Eliminate ALLOCA_H.
* configure: Instead of generating a definition of ALLOCA_H,
generate the variable HAVE_ALLOCA_<name> with a value of 1,
where <name> is one of stdlib, alloca or malloc.
* alloca.h: New header.
* args.c, eval.c, ffi.c ffi.c, ftw.c, hash.c, lib.c, match.c,
parser.c, parser.y, regex.c, socket.c, stream.c, struct.c,
sysif.c, syslog.c, termios.c, unwind.c, vm.c: Include
"alloca.h" instead of ALLOCA_H.
-rw-r--r-- | args.c | 2 | ||||
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | ffi.c | 2 | ||||
-rw-r--r-- | ftw.c | 2 | ||||
-rw-r--r-- | hash.c | 2 | ||||
-rw-r--r-- | lib.c | 2 | ||||
-rw-r--r-- | match.c | 2 | ||||
-rw-r--r-- | parser.c | 2 | ||||
-rw-r--r-- | parser.y | 2 | ||||
-rw-r--r-- | regex.c | 2 | ||||
-rw-r--r-- | socket.c | 2 | ||||
-rw-r--r-- | stream.c | 2 | ||||
-rw-r--r-- | struct.c | 2 | ||||
-rw-r--r-- | sysif.c | 2 | ||||
-rw-r--r-- | syslog.c | 2 | ||||
-rw-r--r-- | termios.c | 4 | ||||
-rw-r--r-- | unwind.c | 2 | ||||
-rw-r--r-- | vm.c | 2 |
19 files changed, 22 insertions, 22 deletions
@@ -30,7 +30,7 @@ #include <string.h> #include <stdarg.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "signal.h" #include "unwind.h" @@ -2577,9 +2577,9 @@ done printf "Checking for alloca ... " -for try_header in stdlib.h alloca.h malloc.h ; do +for try_header in stdlib alloca malloc ; do cat > conftest.c <<! -#include <$try_header> +#include <$try_header.h> int main(int argc, char **argv) { @@ -2590,7 +2590,7 @@ int main(int argc, char **argv) if conftest ; then printf "yes\n" - printf "#define ALLOCA_H <%s>\n" $try_header >> config.h + printf "#define HAVE_ALLOCA_%s 1\n" $try_header >> config.h have_alloca=y break; fi @@ -34,7 +34,7 @@ #include <time.h> #include <assert.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "gc.h" #include "args.h" @@ -43,7 +43,7 @@ #if HAVE_SYS_TYPES_H #include <sys/types.h> #endif -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "stream.h" #include "gc.h" @@ -32,7 +32,7 @@ #include <stddef.h> #include <ftw.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "gc.h" #include "args.h" @@ -32,7 +32,7 @@ #include <limits.h> #include <signal.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #if HAVE_UNISTD_H #include <unistd.h> #endif @@ -40,7 +40,7 @@ #include <sys/time.h> #include <assert.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #ifdef HAVE_GETENVIRONMENTSTRINGS #define NOMINMAX #include <windows.h> @@ -32,7 +32,7 @@ #include <wchar.h> #include <signal.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "gc.h" #include "args.h" @@ -37,7 +37,7 @@ #include <wctype.h> #include <errno.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #ifdef __CYGWIN__ #include <sys/utsname.h> #endif @@ -38,7 +38,7 @@ #include <wchar.h> #include <signal.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "signal.h" #include "unwind.h" @@ -34,7 +34,7 @@ #include <signal.h> #include <stdarg.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "parser.h" #include "signal.h" @@ -38,7 +38,7 @@ #include <sys/un.h> #include <netdb.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #if HAVE_SYS_SELECT_H #include <sys/select.h> #endif @@ -56,7 +56,7 @@ #if HAVE_SOCKETS #include <sys/socket.h> #endif -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "gc.h" #include "signal.h" @@ -34,7 +34,7 @@ #include <signal.h> #include <assert.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "hash.h" #include "eval.h" @@ -76,7 +76,7 @@ #if HAVE_DLOPEN #include <dlfcn.h> #endif -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "stream.h" #include "hash.h" @@ -33,7 +33,7 @@ #include <signal.h> #include <syslog.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "stream.h" #include "gc.h" @@ -33,9 +33,9 @@ #include <wchar.h> #include <signal.h> #include <errno.h> -#include "config.h" #include <termios.h> -#include ALLOCA_H +#include "config.h" +#include "alloca.h" #include "lib.h" #include "gc.h" #include "args.h" @@ -45,7 +45,7 @@ #include "eval.h" #include "struct.h" #include "cadr.h" -#include ALLOCA_H +#include "alloca.h" #include "unwind.h" #define UW_CONT_FRAME_BEFORE (32 * sizeof (val)) @@ -34,7 +34,7 @@ #include <signal.h> #include <assert.h> #include "config.h" -#include ALLOCA_H +#include "alloca.h" #include "lib.h" #include "eval.h" #include "signal.h" |