From 1e43bc3bc6158a918736adf96792815afba268da Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 22 Apr 2020 19:41:38 -0700 Subject: Remove unnecessary #include directives. Time for some spring cleaning. * args.c, arith.c, buf.c, cadr.c, chksum.c, debug.c, ftw.c, gc.c, gencadr.txr, glob.c, hash.c, lisplib.c, match.c, parser.c, parser.l, parser.y, rand.c, signal.c, stream.c, strudel.c, syslog.c, tree.c, unwind.c, utf8.c, vm.c: Numerous unnecessary #include directives removed. --- args.c | 1 - arith.c | 1 - buf.c | 1 - cadr.c | 1 - chksum.c | 2 -- debug.c | 9 --------- ftw.c | 1 - gc.c | 1 - gencadr.txr | 1 - glob.c | 1 - hash.c | 1 - lisplib.c | 1 - match.c | 2 -- parser.c | 1 - parser.l | 6 ------ parser.y | 4 ---- rand.c | 1 - signal.c | 1 - stream.c | 3 --- strudel.c | 3 --- syslog.c | 1 - tree.c | 7 ------- unwind.c | 1 - utf8.c | 1 - vm.c | 2 -- 25 files changed, 54 deletions(-) diff --git a/args.c b/args.c index 92b65a94..e7174a1b 100644 --- a/args.c +++ b/args.c @@ -28,7 +28,6 @@ #include #include #include -#include #include "config.h" #include "alloca.h" #include "lib.h" diff --git a/arith.c b/arith.c index 91f65d03..aad37344 100644 --- a/arith.c +++ b/arith.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include diff --git a/buf.c b/buf.c index c59c282a..4fb25ad6 100644 --- a/buf.c +++ b/buf.c @@ -25,7 +25,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include #include #include diff --git a/cadr.c b/cadr.c index 97cebedf..9e3ce2a2 100644 --- a/cadr.c +++ b/cadr.c @@ -31,7 +31,6 @@ #include #include #include -#include #include "config.h" #include "lib.h" #include "eval.h" diff --git a/chksum.c b/chksum.c index 6b62ac0c..1942c0b4 100644 --- a/chksum.c +++ b/chksum.c @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -34,7 +33,6 @@ #include #include "config.h" #include "lib.h" -#include "gc.h" #include "itypes.h" #include "signal.h" #include "unwind.h" diff --git a/debug.c b/debug.c index b2a3d942..16ad6f28 100644 --- a/debug.c +++ b/debug.c @@ -26,21 +26,12 @@ */ #include -#include #include #include -#include #include "config.h" #include "lib.h" -#include "gc.h" -#include "args.h" -#include "signal.h" -#include "unwind.h" #include "stream.h" -#include "parser.h" -#include "struct.h" #include "eval.h" -#include "txr.h" #include "debug.h" int opt_debugger; diff --git a/ftw.c b/ftw.c index 537e6d4f..9e066754 100644 --- a/ftw.c +++ b/ftw.c @@ -25,7 +25,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include #include #include diff --git a/gc.c b/gc.c index a9f6195c..ce4d5ef7 100644 --- a/gc.c +++ b/gc.c @@ -39,7 +39,6 @@ #include "lib.h" #include "stream.h" #include "hash.h" -#include "txr.h" #include "eval.h" #include "gc.h" #include "signal.h" diff --git a/gencadr.txr b/gencadr.txr index 650a0100..fea5b7a0 100644 --- a/gencadr.txr +++ b/gencadr.txr @@ -25,7 +25,6 @@ #include #include #include -#include #include "config.h" #include "lib.h" #include "eval.h" diff --git a/glob.c b/glob.c index 0584f9bf..f8fb8895 100644 --- a/glob.c +++ b/glob.c @@ -25,7 +25,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include #include #include diff --git a/hash.c b/hash.c index 8c2aee2d..3c76e68a 100644 --- a/hash.c +++ b/hash.c @@ -46,7 +46,6 @@ #include "stream.h" #include "eval.h" #include "itypes.h" -#include "arith.h" #include "sysif.h" #include "hash.h" diff --git a/lisplib.c b/lisplib.c index af0029fb..82ab4058 100644 --- a/lisplib.c +++ b/lisplib.c @@ -32,7 +32,6 @@ #include "config.h" #include "lib.h" #include "eval.h" -#include "signal.h" #include "stream.h" #include "hash.h" #include "gc.h" diff --git a/match.c b/match.c index 86156193..3bb1f719 100644 --- a/match.c +++ b/match.c @@ -45,10 +45,8 @@ #include "txr.h" #include "filter.h" #include "hash.h" -#include "debug.h" #include "eval.h" #include "cadr.h" -#include "arith.h" #include "match.h" int opt_print_bindings = 0; diff --git a/parser.c b/parser.c index b1dfc693..5134f96a 100644 --- a/parser.c +++ b/parser.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include "config.h" diff --git a/parser.l b/parser.l index 5298efdb..c49f6e10 100644 --- a/parser.l +++ b/parser.l @@ -32,15 +32,9 @@ #include #include #include -#include -#include #include -#include #include #include "config.h" -#if HAVE_UNISTD_H -#include -#endif #include "lib.h" #include "gc.h" #include "stream.h" diff --git a/parser.y b/parser.y index 0e94bca0..4ae153db 100644 --- a/parser.y +++ b/parser.y @@ -31,10 +31,7 @@ #include #include #include -#include #include -#include -#include #include #include #include "config.h" @@ -49,7 +46,6 @@ #include "eval.h" #include "tree.h" #include "y.tab.h" -#include "gc.h" #include "debug.h" #include "txr.h" #include "itypes.h" diff --git a/rand.c b/rand.c index 18ea62a2..77d6c18f 100644 --- a/rand.c +++ b/rand.c @@ -27,7 +27,6 @@ #include #include -#include #include #include #include diff --git a/signal.c b/signal.c index 900844e6..06a812c4 100644 --- a/signal.c +++ b/signal.c @@ -27,7 +27,6 @@ #include #include -#include #include #include #include diff --git a/stream.c b/stream.c index 5148e506..2f42ac3f 100644 --- a/stream.c +++ b/stream.c @@ -53,9 +53,6 @@ #if HAVE_WINDOWS_H #include #endif -#if HAVE_SOCKETS -#include -#endif #if HAVE_WSPAWN || HAVE_SPAWN #include #endif diff --git a/strudel.c b/strudel.c index 354417bd..4c19f581 100644 --- a/strudel.c +++ b/strudel.c @@ -25,12 +25,9 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include -#include #include #include -#include #include "config.h" #include "lib.h" #include "stream.h" diff --git a/syslog.c b/syslog.c index e767ac33..4f087566 100644 --- a/syslog.c +++ b/syslog.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include "config.h" #include "alloca.h" diff --git a/tree.c b/tree.c index 12c478ab..fb74f143 100644 --- a/tree.c +++ b/tree.c @@ -34,19 +34,12 @@ #include #include "config.h" #include "alloca.h" -#if HAVE_UNISTD_H -#include -#endif #include "lib.h" #include "gc.h" -#include "args.h" -#include "txr.h" #include "signal.h" #include "unwind.h" #include "stream.h" #include "eval.h" -#include "itypes.h" -#include "arith.h" #include "hash.h" #include "tree.h" diff --git a/unwind.c b/unwind.c index 6459a5e1..efc824ed 100644 --- a/unwind.c +++ b/unwind.c @@ -46,7 +46,6 @@ #include "struct.h" #include "cadr.h" #include "alloca.h" -#include "arith.h" #include "unwind.h" #include "debug.h" diff --git a/utf8.c b/utf8.c index 9c286756..2760c718 100644 --- a/utf8.c +++ b/utf8.c @@ -25,7 +25,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include #include #include diff --git a/vm.c b/vm.c index 257157a9..05946b22 100644 --- a/vm.c +++ b/vm.c @@ -26,9 +26,7 @@ */ #include -#include #include -#include #include #include #include -- cgit v1.2.3