From b07ecc142c6251517be5f4af9c76ba539b54eecc Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 11 Dec 2018 22:52:06 -0800 Subject: Drastically reduce inclusion of . The 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 . * 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 . * cadr.c: Regenerated. * stream.c (make_dir_stream): Make external function static. * stream.h (make_dir_stream): Declaration updated. --- stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream.c') diff --git a/stream.c b/stream.c index 57245de1..fb0b9fc1 100644 --- a/stream.c +++ b/stream.c @@ -1702,7 +1702,7 @@ static struct strm_ops dir_ops = dir_clear_error, 0); -val make_dir_stream(DIR *dir) +static val make_dir_stream(DIR *dir) { struct dir_handle *h = coerce(struct dir_handle *, chk_malloc(sizeof *h)); strm_base_init(&h->a); -- cgit v1.2.3