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

Previous Next

Package: guile;

Reported by: Zhu Zihao <all_but_last <at> 163.com>

Date: Fri, 14 Oct 2022 17:33:01 UTC

Severity: wishlist

To reply to this bug, email your comments to 58524 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#58524; Package guile. (Fri, 14 Oct 2022 17:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zhu Zihao <all_but_last <at> 163.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Fri, 14 Oct 2022 17:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Zhu Zihao <all_but_last <at> 163.com>
To: bug-guile <at> gnu.org
Subject: pointer->procedure doesn't support foreign function use varargs.
Date: Sat, 15 Oct 2022 01:29:06 +0800
[Message part 1 (text/plain, inline)]
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. 
-- 
Retrieve my PGP public key:

  gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC

Zihao
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#58524; Package guile. (Thu, 27 Oct 2022 16:44:02 GMT) Full text and rfc822 format available.

Message #8 received at 58524 <at> debbugs.gnu.org (full text, mbox):

From: Zhu Zihao <all_but_last <at> 163.com>
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 part 1 (text/plain, inline)]
Any one interested in it?
-- 
Retrieve my PGP public key:

  gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC

Zihao
[signature.asc (application/pgp-signature, inline)]

Severity set to 'wishlist' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 05 Nov 2022 23:46:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#58524; Package guile. (Wed, 04 Jun 2025 22:50:02 GMT) Full text and rfc822 format available.

Message #13 received at 58524 <at> debbugs.gnu.org (full text, mbox):

From: Felix Lechner <felix.lechner <at> lease-up.com>
To: 58524 <at> debbugs.gnu.org
Cc: Zhu Zihao <all_but_last <at> 163.com>
Subject: Re: Bug#58524: Use ffi_prep_cif_var in pointer->procedure
Date: Wed, 04 Jun 2025 15:49:32 -0700
Hi Zhu Zihao,

> It's possible to support foreign function use varargs by using
> ffi_prep_cif_var.

I'd like to use it.  Did you get it working?  Thanks!

Kind regards,
Felix Lechner




This bug report was last modified 8 days ago.

Previous Next


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