diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-10 20:37:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-10 20:37:41 -0700 |
commit | e08221a2b9c0286d9c6bed73be61516ee44e3b64 (patch) | |
tree | ca1c260b0e6658ac1dc1121cf2baa606dd35e3d6 /struct.c | |
parent | 2a4693cd5200f87f7effda359e40659955c1ab55 (diff) | |
download | txr-e08221a2b9c0286d9c6bed73be61516ee44e3b64.tar.gz txr-e08221a2b9c0286d9c6bed73be61516ee44e3b64.tar.bz2 txr-e08221a2b9c0286d9c6bed73be61516ee44e3b64.zip |
ffi: refactor array transfers.
This anticipates a redesign of variable arrays. Variable
arrays will have their own put, in, get and out functions,
which will share some implementation.
* ffi.c (ffi_array_in_common): New function.
(ffi_array_in): Bulk of code replaced by call to
ffi_array_in_common.
(ffi_array_put_common, ffi_array_out_common,
ffi_array_get_common): New functions.
(ffi_array_put, ffi_array_out, ffi_array_get): Reduced to thin
wrappers.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions