diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-10 22:12:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-10 22:12:53 -0700 |
commit | 39413e2d3568c3d18976d9b1c55af55af7905e4e (patch) | |
tree | 0dc61f0dce8aba927d4065b8eebf3f6f84718e2c /regex.c | |
parent | a8d124d7626602c6ff44c63757d3c56e6392fc80 (diff) | |
download | txr-39413e2d3568c3d18976d9b1c55af55af7905e4e.tar.gz txr-39413e2d3568c3d18976d9b1c55af55af7905e4e.tar.bz2 txr-39413e2d3568c3d18976d9b1c55af55af7905e4e.zip |
ffi: split varray behavior into separate virtuals.
* ffi.c (struct txr_ffi_type): is_varray flag removed.
We no longer need to test this and adjust behavior.
(ffi_array_in, ffi_array_out): Don't calculate nelem
differently based on flag; just pass down tft->nelem. Code
cleaned up.
(ffi_varray_put, ffi_varray_in): New functions.
(ffi_type_compile): Use ffi_varray_put and ffi_varray_in for
variable array type instead of setting flag. Also, specify the
out function as null; it never made sense to have one, since
there is no get. Finally, set the size of the type to zero,
since it has no pass by value semantics.
Diffstat (limited to 'regex.c')
0 files changed, 0 insertions, 0 deletions