summaryrefslogtreecommitdiffstats
path: root/gencadr.txr
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 /gencadr.txr
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 'gencadr.txr')
-rw-r--r--gencadr.txr1
1 files changed, 0 insertions, 1 deletions
diff --git a/gencadr.txr b/gencadr.txr
index 97ee08f7..650a0100 100644
--- a/gencadr.txr
+++ b/gencadr.txr
@@ -22,7 +22,6 @@
@{c-copyright "\n"}
#include <stdio.h>
-#include <dirent.h>
#include <stdarg.h>
#include <stdlib.h>
#include <limits.h>