fsvb and foreign-typedefs with aggregate types

Madhu enometh at meer.net
Fri Feb 21 10:29:23 UTC 2020


*  Luís Oliveira <luismbo at gmail.com> <CAB-HnLR-ajjUvzjoF08kAsLVWC4xEyCPOn__C8fT36XO_sX8gQ at mail.gmail.com>
Wrote on Thu, 20 Feb 2020 20:09:20 +0000

> On Thu, 20 Feb 2020 at 15:09, Madhu <enometh at meer.net> wrote:
>> This pretty painful when the nesting gets deep.  I started trying to
>> convert the tests and I stopped around struct.alignment.4
>
> There's (get-var-pointer '*s-s-ch*) but it's not much better, I agree.
> We could have DEFCVAR define a symbol macro for &*S-S-CH* that would
> get the pointer, maybe?
>
> For nesting, one can use FOREIGN-SLOT-POINTER explicitly or the
> (:pointer foo) for WITH-FOREIGN-SLOTS.
>
> What do you think?

I've gone ahead and submitted a PR so you can see how the changes look.
better to decide later,




More information about the cffi-devel mailing list