[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] foreign: Why is passing structs as arguments and ret
Re: [Chicken-users] foreign: Why is passing structs as arguments and return-types not supported?
Wed, 29 Feb 2012 16:35:24 +0000
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:18.104.22.168) Gecko/20110617 Thunderbird/3.1.11
-----BEGIN PGP SIGNED MESSAGE-----
On 02/29/2012 03:18 PM, Kristian Lein-Mathisen wrote:
> Since struct-by-value is so central in both of these libraries, manually
> writing wrapper-code would take too long. I am unsure of where to go from
> here, but I suppose my options are:
> - Modify `foreign` to support struct-by-value
> - Modify `chicken-bind` to automatically write wrapper-code for
> - Write a script that re-parses the generated scheme-binding and inserts
> the wrappers
> Any thoughts on how to pursue this?
I would think that the first option is slightly neater, as it would then
apply to users of foreign other than via chicken-bind, but it might be
easier to do in chicken-bind! The last option looks ugly.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----