summaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-12-11 22:52:06 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-12-11 22:52:06 -0800
commitb07ecc142c6251517be5f4af9c76ba539b54eecc (patch)
treed0f6d56e775ef3ae766fc7adcad8b82499f0b3c5 /vm.c
parent2938a0d7e64e2adad3db0988689635e81ad91739 (diff)
downloadtxr-b07ecc142c6251517be5f4af9c76ba539b54eecc.tar.gz
txr-b07ecc142c6251517be5f4af9c76ba539b54eecc.tar.bz2
txr-b07ecc142c6251517be5f4af9c76ba539b54eecc.zip
Drastically reduce inclusion of <dirent.h>.
The <dirent.h> header is included all over the place because it is needed by a single declaration in stream.h. That declaration is for a function that is only called within stream.c, so we make it internal. Now only stream.c has to include <dirent.h>. * buf.c, debug.c, eval.c, ffi.c, filter.c, gc.c, gencadr.txr, hash.c, lib.c, lisplib.c, match.c, parser.c, regex.c, socket.c, struct.c, strudel.c, sysif.c, syslog.c, termios.c, txr.c, unwind.c, vm.c: Remove #include <dirent.h>. * cadr.c: Regenerated. * stream.c (make_dir_stream): Make external function static. * stream.h (make_dir_stream): Declaration updated.
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 7aa463c9..331f0814 100644
--- a/vm.c
+++ b/vm.c
@@ -28,7 +28,6 @@
#include <stddef.h>
#include <stdio.h>
#include <string.h>
-#include <dirent.h>
#include <stdarg.h>
#include <stdlib.h>
#include <limits.h>