IRC channel logs

2024-03-31.log

back to list of logs

<daviid>apteryx: guile-lib 0.2.8 has been released
<belzurix>hi
<belzurix>How do I define/call a variadic C function from guile? I'm using ioctl the naive way, and it works. I'm just making sure this is how I should do it.
<mwette>it's not easy
<mwette>You have to generate an ffi for each call, I think.
<belzurix>I see. Thankfully I only need it once
<mwette>I think it's explained a little in the libffi documentation
<belzurix>makes sense, thanks
<belzurix>I looked it up. Libffi has ffi_prep_cif_var, but grep on the guile code didn't turn up any use of that function, so prolly guile doesn't support it now.
<civodul>belzurix: yeah, (system foreign) doesn’t support variadic functions
<belzurix>thanks for confirming
<belzurix>thankfully, my use case is a comfortable one, I only need to call it once, with one specific argument list
<mwette>libffi doesn't support variadic functions, last time I checked
<apteryx>daviid: I get a bad GPG key signature on guile-lib 0.2.8.tar.gz with key 842265459B413377EEAC91DEF374FD93A3057AD7
<apteryx>(with the check automated by 'guix refresh guile-lib')
<daviid>apteryx: strange, bu i checked here before to upload the release, see - https://paste.centos.org/view/bb613a9b
<apteryx>daviid: I've tried it now again, and it tested fine -- who knows!