summaryrefslogtreecommitdiffstats
path: root/ffi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-20 14:48:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-20 14:48:28 -0700
commit66479625440d34dbb43b8e8a5f645dca95f9cc97 (patch)
tree7bc12b030275e4410711f4016184159d2c97f165 /ffi.h
parent914368cbdca3a26a0e790bf47acec4a393a481c4 (diff)
downloadtxr-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi.h b/ffi.h
index 5545126e..3f415082 100644
--- a/ffi.h
+++ b/ffi.h
@@ -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);