guile-user
[Top][All Lists]
Advanced

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

Re: type friction C <-> scheme


From: Matt Wette
Subject: Re: type friction C <-> scheme
Date: Fri, 9 Jun 2017 15:33:40 -0700

> On Jun 9, 2017, at 2:39 PM, Catonano <address@hidden> wrote:
> 
> 
> 
> 2017-06-09 22:56 GMT+02:00 Matt Wette <address@hidden 
> <mailto:address@hidden>>:
>  
> I think your outcome-ptr should be (bytevector->pointer (make-bytevector 
> (sizeof unsigned-int)))
> 
> Thank you, Matt
> 
> The reason why I wrote it that way is because the previous function 
> (freexl_open) takes a pointer (a handler) and then more or less arbitrarily 
> allocates stuff onto it
> 
> The handler is meant to be passed as an argument to subsequent calls to the 
> other funtiions of the library
> 
> So I tought that the same would have happened with this outcome thing
> 
> Maybe I'm wrong
> 
> I'll think about this tomorrow, too
> 
> Thank you very much for your suggestion ! 

I think Mike caught your real error: you were passing (list ‘* ‘int ‘*) and it 
wants (list ‘* int ‘*).  `int’ is a variable defined by guile.

scheme@(guile-user)> (use-modules (system foreign))
scheme@(guile-user)> int
$1 = 8




reply via email to

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