From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Catonano Newsgroups: gmane.lisp.guile.user Subject: Re: #define SOMETHING some_value Date: Sun, 11 Jun 2017 22:32:16 +0200 Message-ID: References: <87o9tu2ssb.fsf@netris.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497213166 22207 195.159.176.226 (11 Jun 2017 20:32:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Jun 2017 20:32:46 +0000 (UTC) Cc: guile-user@gnu.org, Matt Wette To: Mark H Weaver Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jun 11 22:32:41 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 1dK9XM-0005Sl-Ed for guile-user@m.gmane.org; Sun, 11 Jun 2017 22:32:40 +0200 Original-Received: from localhost ([::1]:35104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dK9XR-0005BC-Pi for guile-user@m.gmane.org; Sun, 11 Jun 2017 16:32:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dK9X1-00055Z-MS for guile-user@gnu.org; Sun, 11 Jun 2017 16:32:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dK9X0-0007CQ-M8 for guile-user@gnu.org; Sun, 11 Jun 2017 16:32:19 -0400 Original-Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:33538) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dK9X0-0007CK-CC for guile-user@gnu.org; Sun, 11 Jun 2017 16:32:18 -0400 Original-Received: by mail-wr0-x229.google.com with SMTP id v104so76970944wrb.0 for ; Sun, 11 Jun 2017 13:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YfS9bCoiEwf04N8IvNEZfs5tAv95+xMqjbk5mYEUXaU=; b=hwpVi29S7JgOmPTfLzxzRNk6iOhdNvI5NdQHzV0Lu5IK9tiv5KCJ7IK3lpn1T9Kpv8 y/kDTUE5iM2j3fAainRP1yEvO+I2IYlf5t28Jd/O66+enA+N6Z4bgtoyWkivMmXW9QUk Xg4DCTHnOjeYrKWdoOM6g+rIVcdA3pagrLD2FIDW4a2I1HGAjNI083EUDgUQGUj9ObfR n7sSKGHg0HySfnE+CQJKmc5UAmptE3uz81B1IdBCB9CdcrTNDXMENVOdShkYC+2oibEc e3lHM8a57Qdmd3rTf279sJTggrOw6wmzEYUH1UuRhufo03C5QPo07KtWU1jWTNnwwblX yMow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YfS9bCoiEwf04N8IvNEZfs5tAv95+xMqjbk5mYEUXaU=; b=PgCcBjrOiC4Ksjjr5MLjqVJS7WdrhFh9c8quf5vD/QjIGvlR/tEiJREl9t7mtPKZbq KxMhiycCf9iYy3prcG/e6wCybZwPJDayq7aVcoa8wSIAkjiZ4Zg8Nh27aaMMgaZzvtdl 626GlDkI9FO8RuC58sPyo4wcF1G8d4C8fU32T7yJvqXmDOn/eUUdLSPTnftIzuRcmjH6 gDuC6qfBSYOjFNh+d9+m8NwiIuK1SjsBySReXHf24cHczl5i11+gVAJuDu8YAIuFFQcA hJ38YYfY/H/KG04rZf32ag5TTFMQBuujo2zUuRqFfgNTuFR0KaR4HsSKC/Np59qLYsls YTSg== X-Gm-Message-State: AODbwcCCW49wP1iwsNjVnOU72SDVFe0IXqX2N0A0AEF1oe9BhTv/1BIn ilvbjXVf3p6ZbaeMkhFT++O1Co266w== X-Received: by 10.80.137.36 with SMTP id e33mr26742699ede.67.1497213137192; Sun, 11 Jun 2017 13:32:17 -0700 (PDT) Original-Received: by 10.80.131.4 with HTTP; Sun, 11 Jun 2017 13:32:16 -0700 (PDT) In-Reply-To: <87o9tu2ssb.fsf@netris.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::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:13814 Archived-At: 2017-06-11 22:06 GMT+02:00 Mark H Weaver : > Catonano writes: > > > 2017-06-10 17:55 GMT+02:00 Matt Wette : > > > > Yea. I may have steered you wrong before. (I didn=E2=80=99t look back.= ) The > >> argument signature might need to be (list =E2=80=98* unsigned-short = =E2=80=98*) rather > than > >> your current one with unsigned-int. > > I agree with Matt that you should use 'unsigned-short' here, since > that's the type specified in the C function prototype. Although it is > true that most platform ABIs will treat them equivalently for purposes > of argument passing, the C standards provide no guarantee of that as far > as I can tell. > yes, I corrected that to an unsigned-short > > > I tried with no result :-/ > > What does "no result" mean here? For now, I will assume it means that > you get the same error as before: > yes, I meant I was gettiing te same error as before > > ERROR: Throw to key `get-info-error' with args `(error-code -3)'. > > The -3 corresponds to: > > #define FREEXL_INVALID_HANDLE -3 /* Invalid xls_handle argument. */ > Right, I found that out a few minutes ago > > So I would consider it likely that the problem is with the first > argument (the handle), not the second one (the unsigned short). > Spot on ! I was assuming that the error returned was FREEXL_INVALID_INFO_ARG I was wrong, of course. I realized this just a ffew minutes ago ! Sorry for the noiise :-/ Thanks Mark !