summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-22 19:41:38 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-22 19:41:38 -0700
commit1e43bc3bc6158a918736adf96792815afba268da (patch)
treefe54c7b28c245160605b9e6b9baab0b09d4ed930
parentb692d3b5b9470551da36768ac47f8aa6805be84b (diff)
downloadtxr-1e43bc3bc6158a918736adf96792815afba268da.tar.gz
txr-1e43bc3bc6158a918736adf96792815afba268da.tar.bz2
txr-1e43bc3bc6158a918736adf96792815afba268da.zip
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.
-rw-r--r--args.c1
-rw-r--r--arith.c1
-rw-r--r--buf.c1
-rw-r--r--cadr.c1
-rw-r--r--chksum.c2
-rw-r--r--debug.c9
-rw-r--r--ftw.c1
-rw-r--r--gc.c1
-rw-r--r--gencadr.txr1
-rw-r--r--glob.c1
-rw-r--r--hash.c1
-rw-r--r--lisplib.c1
-rw-r--r--match.c2
-rw-r--r--parser.c1
-rw-r--r--parser.l6
-rw-r--r--parser.y4
-rw-r--r--rand.c1
-rw-r--r--signal.c1
-rw-r--r--stream.c3
-rw-r--r--strudel.c3
-rw-r--r--syslog.c1
-rw-r--r--tree.c7
-rw-r--r--unwind.c1
-rw-r--r--utf8.c1
-rw-r--r--vm.c2
25 files changed, 0 insertions, 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 <stddef.h>
#include <signal.h>
#include <string.h>
-#include <stdarg.h>
#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 <stddef.h>
#include <string.h>
#include <wctype.h>
-#include <stdarg.h>
#include <wchar.h>
#include <math.h>
#include <signal.h>
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 <stddef.h>
#include <wchar.h>
#include <limits.h>
#include <float.h>
diff --git a/cadr.c b/cadr.c
index 97cebedf..9e3ce2a2 100644
--- a/cadr.c
+++ b/cadr.c
@@ -31,7 +31,6 @@
#include <stdarg.h>
#include <stdlib.h>
#include <limits.h>
-#include <signal.h>
#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 <stddef.h>
#include <wchar.h>
#include <limits.h>
-#include <float.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
@@ -34,7 +33,6 @@
#include <stdio.h>
#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 <stdio.h>
-#include <stdlib.h>
#include <stdarg.h>
#include <wchar.h>
-#include <signal.h>
#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 <stdarg.h>
#include <wchar.h>
#include <signal.h>
#include <stdlib.h>
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 <stdarg.h>
#include <stdlib.h>
#include <limits.h>
-#include <signal.h>
#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 <stdarg.h>
#include <wchar.h>
#include <signal.h>
#include <stdlib.h>
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 <stdarg.h>
#include <wchar.h>
#include <signal.h>
-#include <ctype.h>
#include <wctype.h>
#include <errno.h>
#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 <stdarg.h>
#include <stdlib.h>
#include <limits.h>
-#include <errno.h>
-#include <dirent.h>
#include <wchar.h>
-#include <setjmp.h>
#include <signal.h>
#include "config.h"
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#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 <stdio.h>
#include <assert.h>
#include <limits.h>
-#include <dirent.h>
#include <stdlib.h>
-#include <stdarg.h>
-#include <setjmp.h>
#include <wchar.h>
#include <signal.h>
#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 <string.h>
#include <wctype.h>
-#include <stdarg.h>
#include <wchar.h>
#include <limits.h>
#include <signal.h>
diff --git a/signal.c b/signal.c
index 900844e6..06a812c4 100644
--- a/signal.c
+++ b/signal.c
@@ -27,7 +27,6 @@
#include <stdlib.h>
#include <string.h>
-#include <stdarg.h>
#include <errno.h>
#include <wchar.h>
#include <signal.h>
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 <windows.h>
#endif
-#if HAVE_SOCKETS
-#include <sys/socket.h>
-#endif
#if HAVE_WSPAWN || HAVE_SPAWN
#include <process.h>
#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 <stddef.h>
#include <stdio.h>
-#include <stdlib.h>
#include <stdarg.h>
#include <wchar.h>
-#include <signal.h>
#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 <stdlib.h>
#include <stdarg.h>
#include <wchar.h>
-#include <signal.h>
#include <syslog.h>
#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 <signal.h>
#include "config.h"
#include "alloca.h"
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#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 <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/vm.c b/vm.c
index 257157a9..05946b22 100644
--- a/vm.c
+++ b/vm.c
@@ -26,9 +26,7 @@
*/
#include <stddef.h>
-#include <stdio.h>
#include <string.h>
-#include <stdarg.h>
#include <stdlib.h>
#include <limits.h>
#include <signal.h>