From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: type friction C <-> scheme Date: Fri, 9 Jun 2017 15:33:40 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497047663 25421 195.159.176.226 (9 Jun 2017 22:34:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Jun 2017 22:34:23 +0000 (UTC) Cc: guile-user@gnu.org To: Catonano Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jun 10 00:34:17 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJSTx-0006Cb-M4 for guile-user@m.gmane.org; Sat, 10 Jun 2017 00:34:17 +0200 Original-Received: from localhost ([::1]:56568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJSTz-0007cf-Ii for guile-user@m.gmane.org; Fri, 09 Jun 2017 18:34:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJSTc-0007cZ-6k for guile-user@gnu.org; Fri, 09 Jun 2017 18:33:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJSTX-0001c5-6q for guile-user@gnu.org; Fri, 09 Jun 2017 18:33:56 -0400 Original-Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:36708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJSTW-0001at-TO for guile-user@gnu.org; Fri, 09 Jun 2017 18:33:51 -0400 Original-Received: by mail-pf0-x229.google.com with SMTP id x63so32663762pff.3 for ; Fri, 09 Jun 2017 15:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=mvWISBV7F61R820UQKDqbaVtDXwQq7zCAGEz1SV3ahA=; b=gJVAw0wRy7r8Jg59VQRFRs3xcZolp7leGjEnpTkdu9FxAUaKNJTUm2g2F5do0txXwF Omp7CJJOAyZb43LnnKwHDHX0dHB2w3asMP/d2OaVddWcd3bxjUrNGFYwOtgvGZm1wkQu wCOX6R3raM3SqVSMQtNbp8lZjk3ah0OAVW4/06VJsYXfKvlKtmHNKJcycHf1o2PlQ8jn ohYt7jTNKNVMRMuRt/VkIAo8cjfA4IjYpFWqleXR0Cllsq78h3yYIXT7opo56BbNkSYu sistiVdqlloH3xXVi69LeAR92jbkyln3MPFTgy8TVln+v+gHxLDqZE16nFvjODYgkPk5 w6LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=mvWISBV7F61R820UQKDqbaVtDXwQq7zCAGEz1SV3ahA=; b=lBLFJJ5SOP/o6f7JfdNqe6cCINOFc2EAWNXP+9RfNBKal0hvo0d6sX1nCI7QG3AcPW UzlL1vOyhO1LdhHuGMPlQgpS1JF1q/NGHgPrLb6QaN/v5y5MfcNKv4XpJfJtp0cBe0WP Ibi+XklK4esQHKcdEyvgxPp2QpedoNJYRvU1A2tIdi44fYQO46lgDCvkkNGs4rXJcMO5 35fnSfXqYa+gZL4xDrft6daTS2vSkBPDW94Z04kOWlkIouz+2pF+VutIxOdzCbbKuj01 oso5hSmVlliSiconKl5nnNwE+YqV5X9Ye3RqTNRYI99IThMo6qok6AdzFtb27v77boah 6H9w== X-Gm-Message-State: AODbwcA6hcVm4WI94R3zrzd4oTrMt+t4+QeeXTMH5m+Y9Q++Sht8RQUY WF7a/oeUhfanMA== X-Received: by 10.84.201.74 with SMTP id t10mr951443plh.44.1497047629968; Fri, 09 Jun 2017 15:33:49 -0700 (PDT) Original-Received: from [192.168.2.114] (216-165-236-44.championbroadband.com. [216.165.236.44]) by smtp.gmail.com with ESMTPSA id d75sm5188068pfj.75.2017.06.09.15.33.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 15:33:48 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13794 Archived-At: > On Jun 9, 2017, at 2:39 PM, Catonano wrote: >=20 >=20 >=20 > 2017-06-09 22:56 GMT+02:00 Matt Wette >: > =20 > I think your outcome-ptr should be (bytevector->pointer = (make-bytevector (sizeof unsigned-int))) >=20 > Thank you, Matt >=20 > 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 >=20 > The handler is meant to be passed as an argument to subsequent calls = to the other funtiions of the library >=20 > So I tought that the same would have happened with this outcome thing >=20 > Maybe I'm wrong >=20 > I'll think about this tomorrow, too >=20 > Thank you very much for your suggestion !=20 I think Mike caught your real error: you were passing (list =E2=80=98* = =E2=80=98int =E2=80=98*) and it wants (list =E2=80=98* int =E2=80=98*). = `int=E2=80=99 is a variable defined by guile. scheme@(guile-user)> (use-modules (system foreign)) scheme@(guile-user)> int $1 =3D 8