summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-10-13 19:05:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-10-13 19:05:49 -0700
commitaa48ae0df546d78602962096b3b9578fae47b645 (patch)
treed946e05ed4ebe69b931ffbb7ce53984ef114a63f /lisplib.c
parentd94af272503d246929556087ae687d0fa8170611 (diff)
downloadtxr-aa48ae0df546d78602962096b3b9578fae47b645.tar.gz
txr-aa48ae0df546d78602962096b3b9578fae47b645.tar.bz2
txr-aa48ae0df546d78602962096b3b9578fae47b645.zip
Adding family slot to socket addresses.
A static slot indicating the address family simplifies code which wants to map a socket address to its family. * lisplib.c (sock_instantiate): Call sock_load_init before loading socket.tl rather than after, because socket.tl now references variables defined inside sock_load_init. * share/txr/stdlib/socket.tl (sockaddr, sockaddr-in, sockaddr-in6, sockaddr-un): New static slot, family. * txr.1: Documented family slots.
Diffstat (limited to 'lisplib.c')
-rw-r--r--lisplib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisplib.c b/lisplib.c
index 33f8b9b4..56c97076 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -306,8 +306,8 @@ static val sock_set_entries(val dlt, val fun)
static val sock_instantiate(val set_fun)
{
funcall1(set_fun, nil);
- load(format(nil, lit("~asocket.tl"), stdlib_path, nao));
sock_load_init();
+ load(format(nil, lit("~asocket.tl"), stdlib_path, nao));
return nil;
}