unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matt.wette@gmail.com>
To: Catonano <catonano@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: type friction C <-> scheme
Date: Fri, 9 Jun 2017 15:33:40 -0700	[thread overview]
Message-ID: <E88E94B4-FCB9-408D-AEA3-6CBC6D21E36B@gmail.com> (raw)
In-Reply-To: <CAJ98PDzMV19sGktk8edFDtEnFzv7-mPyYQgUrGZUBegK0j6oOw@mail.gmail.com>

> On Jun 9, 2017, at 2:39 PM, Catonano <catonano@gmail.com> wrote:
> 
> 
> 
> 2017-06-09 22:56 GMT+02:00 Matt Wette <matt.wette@gmail.com <mailto:matt.wette@gmail.com>>:
>  
> 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	other threads:[~2017-06-09 22:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-09 20:36 type friction C <-> scheme Catonano
2017-06-09 20:52 ` Mike Gran
2017-06-09 21:33   ` Catonano
2017-06-09 20:56 ` Matt Wette
2017-06-09 21:39   ` Catonano
2017-06-09 22:33     ` Matt Wette [this message]
2017-06-10  6:26       ` Catonano
2017-06-11  5:50         ` Mark H Weaver
2017-06-11 13:07           ` Matt Wette
2017-06-11 17:15           ` Catonano
2017-06-11 18:01 ` Matt Wette
2017-06-11 18:20   ` Catonano
2017-06-12  8:00   ` David Pirotte
2017-06-12 12:45     ` Matt Wette

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E88E94B4-FCB9-408D-AEA3-6CBC6D21E36B@gmail.com \
    --to=matt.wette@gmail.com \
    --cc=catonano@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).