ffi parser's structs shouldn't do `ptr⊣`
Closed this issue · 0 comments
Brian-ED commented
fields in the structs that the ffi parser produces often has ptr⊣'*'∾str
as a field. This is so that if functions output something with the "type" of a struct struct, the field is guaranteed to have pointers instead of erroring when bqn can't destructure them.
So, to fix this issue all that needs to be done is remove the ptr⊣ and handle pointers in the _r
function instead. this also allows the structs to hold the pointer information.