GNU bug report logs - #58524
pointer->procedure doesn't support foreign function use varargs.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Severity: wishlist; Reported by: Zhu Zihao <all_but_last@HIDDEN>; dated Fri, 14 Oct 2022 17:33:01 UTC; Maintainer for guile is bug-guile@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 58524 <at> debbugs.gnu.org:


Received: (at 58524) by debbugs.gnu.org; 27 Oct 2022 16:43:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 27 12:43:30 2022
Received: from localhost ([127.0.0.1]:59134 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oo5yc-0002GI-0Y
	for submit <at> debbugs.gnu.org; Thu, 27 Oct 2022 12:43:30 -0400
Received: from mail-m975.mail.163.com ([123.126.97.5]:50724)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <all_but_last@HIDDEN>) id 1oo5yY-0002G1-NW
 for 58524 <at> debbugs.gnu.org; Thu, 27 Oct 2022 12:43:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;
 s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=tvjfs
 8+Y6sD8e4PUij/sE/ciCCrX/SE84uuzrC/k+9U=; b=djAaXIdyn35cy5Wm9YV7M
 mdmhCW0L66xWAZcSz9Ju8/ZyR7zzwkiyI3PPG9Qj6MVcfeic89G9oIXQp/7zt/5Y
 0wqX9fcrTSnDehXZ13BUTtzU653stCdFoZyCVUJkt97OPqaW3Hygn+Mvr9aKTLIF
 SQAcReF3hg28bpuE/DVqKM=
Received: from asus-laptop (unknown [27.38.249.197])
 by smtp5 (Coremail) with SMTP id HdxpCgD3gTcjtVpjb1LQnw--.41561S2;
 Fri, 28 Oct 2022 00:43:16 +0800 (CST)
User-agent: mu4e 1.8.9; emacs 29.0.50
From: Zhu Zihao <all_but_last@HIDDEN>
To: 58524 <at> debbugs.gnu.org
Subject: Re: bug#58524: Acknowledgement (pointer->procedure doesn't support
 foreign function use varargs.)
Date: Fri, 28 Oct 2022 00:42:42 +0800
Message-ID: <8635b9usj3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-CM-TRANSID: HdxpCgD3gTcjtVpjb1LQnw--.41561S2
X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73
 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4Rg0eLUUUUU
X-Originating-IP: [27.38.249.197]
X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBoQSnr2I0VZotEwAAsK
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 58524
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


Any one interested in it?
=2D-=20
Retrieve my PGP public key:

  gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC

Zihao

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIsEARYIADMWIQT4UAIrVkIEZilSHr2K2nJqP6LM8gUCY1q1EBUcYWxsX2J1dF9s
YXN0QDE2My5jb20ACgkQitpyaj+izPJ0oQD/cA0oYlMjwrfo8VBgTcoGcw+feGqi
QiMQX3BDgB/WTT0A/3sTu3fyGxjZLRpbgt67a86bgbGnd2UCPKcT31Ezz2AJ
=fLT+
-----END PGP SIGNATURE-----
--=-=-=--





Information forwarded to bug-guile@HIDDEN:
bug#58524; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Oct 2022 17:32:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 14 13:32:33 2022
Received: from localhost ([127.0.0.1]:38526 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojOXx-00027h-4V
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 13:32:33 -0400
Received: from lists.gnu.org ([209.51.188.17]:50154)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <all_but_last@HIDDEN>) id 1ojOXu-00027Z-MZ
 for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 13:32:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44680)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <all_but_last@HIDDEN>)
 id 1ojOXu-0001wa-Gc
 for bug-guile@HIDDEN; Fri, 14 Oct 2022 13:32:30 -0400
Received: from mail-m971.mail.163.com ([123.126.97.1]:48258)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <all_but_last@HIDDEN>) id 1ojOXp-0007Re-1n
 for bug-guile@HIDDEN; Fri, 14 Oct 2022 13:32:27 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com;
 s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=BcGv5
 r0Tzr3RDcI1eNVgXwnni3sP0AR2aF0JX5qYpag=; b=FLpa1wvrzx/H5SEkbyGm6
 8uzfy/p2HqColBBUpfNo6D5MS7bpizN5pDHONIdCxOocO88qzxmv8KiIaKgWPJz7
 W72Rt0ZPLJJE4F+6ZvuEBk2MAD3RmkYJz8WgHXnh+nrFIUFo6wAMiLOcorHYzlx/
 9pFCiLuIFaZSV/ikodkEEg=
Received: from asus-laptop (unknown [163.125.249.49])
 by smtp1 (Coremail) with SMTP id GdxpCgDnC6ccnUljpe4Ukg--.903S2;
 Sat, 15 Oct 2022 01:32:13 +0800 (CST)
User-agent: mu4e 1.8.9; emacs 29.0.50
From: Zhu Zihao <all_but_last@HIDDEN>
To: bug-guile@HIDDEN
Subject: pointer->procedure doesn't support foreign function use varargs.
Date: Sat, 15 Oct 2022 01:29:06 +0800
Message-ID: <86pmeuia6d.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-CM-TRANSID: GdxpCgDnC6ccnUljpe4Ukg--.903S2
X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73
 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUeHqcDUUUU
X-Originating-IP: [163.125.249.49]
X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBoR2ar2I0VLsHWgAAst
Received-SPF: pass client-ip=123.126.97.1; envelope-from=all_but_last@HIDDEN;
 helo=mail-m971.mail.163.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

In current implementation of pointer->procedure, it use ffi_prep_cif.
So pointer->procedure just support foreign function with fixed amount of
arguments.

It's possible to support foreign function use varargs by using ffi_prep_cif=
_var.=20
=2D-=20
Retrieve my PGP public key:

  gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC

Zihao

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIsEARYIADMWIQT4UAIrVkIEZilSHr2K2nJqP6LM8gUCY0mc+hUcYWxsX2J1dF9s
YXN0QDE2My5jb20ACgkQitpyaj+izPKFswD9Ftz2xwKS9GN8gaYmWVA1vwuQrSHm
qzWgUDhQ27kUBh8A/AkuDL7FYqzIqR1wLAQ4pkQB3iCCDo014fS1/+wLCCYK
=1gm6
-----END PGP SIGNATURE-----
--=-=-=--





Acknowledgement sent to Zhu Zihao <all_but_last@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#58524; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 6 Nov 2022 00:00:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.