diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-04-26 19:32:29 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-04-26 19:32:29 -0700 |
commit | 8b0fdf4d546dac440af65909eb81ecb2f7d767e9 (patch) | |
tree | a89b78a2915fb25ac23b8b81aa208873b8af485b /ffi.h | |
parent | faa1d47a44989da1788c1217ca8bafc0129099ac (diff) | |
download | txr-8b0fdf4d546dac440af65909eb81ecb2f7d767e9.tar.gz txr-8b0fdf4d546dac440af65909eb81ecb2f7d767e9.tar.bz2 txr-8b0fdf4d546dac440af65909eb81ecb2f7d767e9.zip |
ffi: array support.
* ffi.c (array_s): New symbol variable.
(ffi_array_put, ffi_array_get, ffi_array_fill,
make_ffi_type_array): New static functions.
(ffi_type_compile): Support (array <dim> <type>)
syntax.
(ffi_init): Initialize array_s.
* ffi.h (array_s): Declared.
Diffstat (limited to 'ffi.h')
-rw-r--r-- | ffi.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -41,6 +41,8 @@ extern val wstr_s; extern val ptr_in_s, ptr_out_s, ptr_in_out_s; +extern val array_s; + extern val void_s; extern val ffi_type_s, ffi_call_desc_s; |