> From: Peter Feigl <cra...@gmx.net> > Date: Wed, 12 Dec 2012 14:05:51 +0100 > > [...] This patch removes the "struct" from the declaration of the > struct in grovel_struct_<name> and from the sizeof(<name>) in the > -const.c file generated by the FFI.
I can't imagine just chopping "struct" off a type declaration (moving it from one namespace to another!) can be the solution. Can we start with an example? I tried generating a shim for the API you gave and had no problem. (typedef a (struct (x int))) (extern (* a) test_func (arg (* a))) There IS a problem with (extern a test_func (arg a)) signaled by a warning "Unexpected return type: (struct (x . int))". (It could call that an "unsupported return type", and warn about the type of ARG too.) _______________________________________________ MIT-Scheme-devel mailing list MIT-Scheme-devel@gnu.org https://lists.gnu.org/mailman/listinfo/mit-scheme-devel