diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-12-14 00:12:26 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-12-14 00:12:26 -0800 |
commit | 399a2ca0791bbb59a6b008543f52ae4b0b06043f (patch) | |
tree | b47fcbff8b199804e7d16a03bae9e05101e102c8 /RELNOTES | |
parent | 9ffe9af3ce306990e4256e4ade3a490591799313 (diff) | |
download | txr-399a2ca0791bbb59a6b008543f52ae4b0b06043f.tar.gz txr-399a2ca0791bbb59a6b008543f52ae4b0b06043f.tar.bz2 txr-399a2ca0791bbb59a6b008543f52ae4b0b06043f.zip |
ffi: turn char conversion flags into enum.
The three flags controlling character array conversion
semantics are mutually exclusive. Let's turn them into an
enumeration, so we can (1) test that a conversion is in effect
by testing a single value and (2) switch on the conversion
type instead of successively testing the flags and (3) assure
the aforementioned mutual exclusion.
* ffi.c (enum char_conv): New enum.
(struct txr_ffi_type): Members char_conv, wchar_conv and
bchar_conv gone, replaced by ch_conv.
(ffi_array_in, ffi_array_put, ffi_array_out,
ffi_array_get_common, ffi_array_release_common,
ffi_varray_null_term_get, ffi_type_compile,
carray_ensure_artype): Work with ch_conv instead of three
flags.
Diffstat (limited to 'RELNOTES')
0 files changed, 0 insertions, 0 deletions