diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-12-11 22:52:06 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-12-11 22:52:06 -0800 |
commit | b07ecc142c6251517be5f4af9c76ba539b54eecc (patch) | |
tree | d0f6d56e775ef3ae766fc7adcad8b82499f0b3c5 /vm.c | |
parent | 2938a0d7e64e2adad3db0988689635e81ad91739 (diff) | |
download | txr-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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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> |