chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] how to map Scheme string to void* instead of char*


From: felix winkelmann
Subject: Re: [Chicken-users] how to map Scheme string to void* instead of char*
Date: Wed, 4 Apr 2007 13:19:57 +0200

Done.


cheers,
felix

On 4/4/07, minh thu <address@hidden> wrote:
2007/4/4, felix winkelmann <address@hidden>:
> On 4/4/07, minh thu <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]