diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-20 14:48:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-20 14:48:28 -0700 |
commit | 66479625440d34dbb43b8e8a5f645dca95f9cc97 (patch) | |
tree | 7bc12b030275e4410711f4016184159d2c97f165 /ffi.h | |
parent | 914368cbdca3a26a0e790bf47acec4a393a481c4 (diff) | |
download | txr-66479625440d34dbb43b8e8a5f645dca95f9cc97.tar.gz txr-66479625440d34dbb43b8e8a5f645dca95f9cc97.tar.bz2 txr-66479625440d34dbb43b8e8a5f645dca95f9cc97.zip |
ffi: overhaul ffi-call API and document it.
* ffi.c (ffi_call_wrap): Take struct args * parameters
rather than a list. Check that number of arguments
matches required number from call desc. No need
to build argument array any more; we just refer to
the one in args. Also, the first two parameters
are reversed for consistency with other functions.
(ffi_init): Update registration of ffi-call to
reflect type change.
* ffi.h (ffi_call_wrap): Declaration updated.
* txr.1: Documented ffi-call.
Diffstat (limited to 'ffi.h')
-rw-r--r-- | ffi.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,7 +55,7 @@ val ffi_type_compile(val syntax); val ffi_make_call_desc(val ntotal, val nfixed, val rettype, val argtypes); val ffi_make_closure(val fun, val call_desc, val safe_p_in, val abort_ret_in); mem_t *ffi_closure_get_fptr(val closure); -val ffi_call_wrap(val ffi_call_desc, val fptr, val args); +val ffi_call_wrap(val fptr, val ffi_call_desc, struct args *args); val ffi_typedef(val name, val type); val ffi_size(val type); val ffi_put_into(val dstbuf, val obj, val type); |