diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-10-13 19:05:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-10-13 19:05:49 -0700 |
commit | aa48ae0df546d78602962096b3b9578fae47b645 (patch) | |
tree | d946e05ed4ebe69b931ffbb7ce53984ef114a63f /lisplib.c | |
parent | d94af272503d246929556087ae687d0fa8170611 (diff) | |
download | txr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |