FFI questions

2020-05-15 Thread Jan Synacek
Hello, Currently I have something like this: (define libxcb (dynamic-link "libxcb")) ... (define c-change-window-attributes (pointer->procedure void (dynamic-func "xcb_change_window_attributes" libxcb) (list '* uint32 uint32 '*))) (define (change-window-attributes conn win mask val

guile-cairo 1.11.0 released

2020-05-15 Thread Daniel Llorens
I'm pleased to announce the release of guile-cairo 1.11.0. guile-cairo (https://www.nongnu.org/guile-cairo) is a set of bindings for Cairo, the 2D graphics library (https://cairographics.org). The current version of guile-cairo wraps the Cairo 1.10 API, but it works with later versions as well

Re: SRFI-37 and short-name option with optional argument

2020-05-15 Thread zimoun
Dear Linus, On Tue, 12 May 2020 at 22:29, Linus Björnstam wrote: > > I Sony have an answer to your question, but using (ice-9 getopt-long)is > usually the library guilers reach for unless they want to install third party > libraries: > https://www.gnu.org/software/guile/manual/html_node/getopt

Re: SRFI-37 and short-name option with optional argument

2020-05-15 Thread Zelphir Kaltstahl
Hi Simon! Perhaps this will help? https://notabug.org/ZelphirKaltstahl/guile-examples/src/master/command-line-arguments Regards, Zelphir On 5/15/20 5:21 PM, zimoun wrote: > Dear Linus, > > On Tue, 12 May 2020 at 22:29, Linus Björnstam > wrote: >> I Sony have an answer to your question, but usi

Re: FFI questions

2020-05-15 Thread Taylan Kammer
On 15.05.2020 15:47, Jan Synacek wrote: Hello, Currently I have something like this: (define libxcb (dynamic-link "libxcb")) ... (define c-change-window-attributes (pointer->procedure void (dynamic-func "xcb_change_window_attributes" libxcb) (list '* uint32 uint32 '*))) (defin

Re: FFI questions

2020-05-15 Thread Matt Wette
On 5/15/20 1:09 PM, Taylan Kammer wrote: The FFI Helper is by Matt Wette who also hangs around on this mailing list I believe. I think Taylan's suggestion on your first part is probably correct. Bytestructures allows you to access and change structure members by name. Matt

Re: FFI questions

2020-05-15 Thread Matt Wette
On 5/15/20 4:52 PM, Matt Wette wrote: On 5/15/20 1:09 PM, Taylan Kammer wrote: The FFI Helper is by Matt Wette who also hangs around on this mailing list I believe. I think Taylan's suggestion on your first part is probably correct. Bytestructures allows you to access and change structu