summaryrefslogtreecommitdiffstats
path: root/tests/017/flexstruct.tl
Commit message (Collapse)AuthorAgeFilesLines
* ffi: testing and fixing flexible arrays.Kaz Kylheku2022-05-201-0/+64
* ffi.c (ffi_flex_struct_in): Check for the last member being an array, and not null-terminated. We now check the character conversion disposition of the array. If it has character conversion, then we store the length right into the slot that will become the string. In the no-conversion case, we assume that if the member exists, it's a vector we can resize. Otherwise we plant a vector of the required size. (ffi_varray_put): Only call ffi_varray_dynsize if the Lisp object is a vector. If the Lisp objecct is a number, then use that as the size. Otherwise the size is zero. * tests/017/flexstruct.tl: New file.