diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-29 06:45:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-29 06:45:28 -0700 |
commit | 7cb61818d24d0ba948172984d5cc676aab219de7 (patch) | |
tree | d179626eb20f41e9ae7af462a8b97313ecbf7829 /ffi.h | |
parent | 54563bdf9c33c75e69c1fdd3d99dea6eb7f4355a (diff) | |
download | txr-7cb61818d24d0ba948172984d5cc676aab219de7.tar.gz txr-7cb61818d24d0ba948172984d5cc676aab219de7.tar.bz2 txr-7cb61818d24d0ba948172984d5cc676aab219de7.zip |
ffi: make-union can initialize.
* ffi.c (make_union): Two arguments added. These
are optional.
(ffi_init): Update registration of make-union as
three-parameter function, with one required arg.
* ffi.h (make_union): Declaration updated.
* txr.1: Documented.
Diffstat (limited to 'ffi.h')
-rw-r--r-- | ffi.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -122,7 +122,7 @@ val num_carray(val carray); val put_carray(val carray, val offs, val stream); val fill_carray(val carray, val offs, val stream); mem_t *union_get_ptr(val uni); -val make_union(val type); +val make_union(val type, val init, val memb); val union_members(val uni); val union_get(val uni, val memb); val union_put(val uni, val memb, val newval); |