summaryrefslogtreecommitdiffstats
path: root/stream.h
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 /stream.h
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 'stream.h')
-rw-r--r--stream.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/stream.h b/stream.h
index 12750639..42a1464e 100644
--- a/stream.h
+++ b/stream.h
@@ -172,7 +172,6 @@ val make_string_output_stream(void);
val get_string_from_stream(val);
val make_strlist_output_stream(void);
val get_list_from_stream(val);
-val make_dir_stream(DIR *);
val record_adapter(val regex, val stream, val include_match);
val streamp(val obj);
val real_time_stream_p(val obj);