2007/4/4, felix winkelmann <[EMAIL PROTECTED]>:
On 4/4/07, minh thu <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm a bit lost :
> I'm using foreign-parse to write bindings for the QuesoGLC library [1]
> (which I'll release as BSD3 egg; the library itself is LGPL).
> Some functions of this library accept string as argument; the type is
> void*, not char*.
> Building the bindings seems to go well but when I want to use such a function,
> Chicken tells me "bad argument type - not a pointer".
>
> I guess I'll have the same problem with void* return types.
> How should I handle those cases ?
>
How do you wrap those library functions? With easyffi? Then, you can
just change the argument type declarations to "char *".
Yes, with easyffi (I use foreign-parse, so doesn't it imply it's easyffi ?).
Changing C declarations to char* works, thank you.
Can I request a repository for this egg ?
I think 'glc' would be an appropriate name.
Thank you,
thu
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users