diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-21 05:20:03 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-21 05:20:03 -0700 |
commit | e6b4c840ba4e0a9901a26d878ba710bf1d941269 (patch) | |
tree | 73da2bc6f0be7e726db7c7080776c4c80aef9395 /struct.c | |
parent | f4781805fc84829f6e859e01cf00055253653599 (diff) | |
download | txr-e6b4c840ba4e0a9901a26d878ba710bf1d941269.tar.gz txr-e6b4c840ba4e0a9901a26d878ba710bf1d941269.tar.bz2 txr-e6b4c840ba4e0a9901a26d878ba710bf1d941269.zip |
ffi: flex structs: minor refactor.
* ffi.c (ffi_flex_struct_in): Function renamed to ffi_flex_array_len,
because its responsibility is determining the length of a flexible
array that is not null terminated. We don't pass in the structure's
type's descriptor any more, but the member descriptor.
(ffi_struct_in, ffi_struct_get): Follow rename and changed parameter
conventions.
* tests/017/flexstruct.tl: Added test case with nested flexible
structure.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions