chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Conflict between easyffi and syntax-case


From: William Ramsay
Subject: [Chicken-users] Conflict between easyffi and syntax-case
Date: Wed, 07 Jan 2009 19:14:07 -0500
User-agent: Thunderbird 2.0.0.17 (X11/20080914)

Hello again,

I am trying to use macros with a program that requires some C functions. But when I "require-extension syntax-case" and extend easyffi I get compile errors. If I eliminate either one the code compiles fine. (I am also using the xlib egg in my program).

While I'm at it I might as well add that I'm having some problems with xlib - probably because I don't know what I'm doing.

For instance:      (let
((d-atom (xinternatom (display, "WM_DELETE_WINDOW", 0)

creates a proper atom.     However it's a long.

If I try to call (xsetwmprotocols display window d-atom 1) I get an error because xsetwmprotocols wants a pointer, not a long. How do I represent the address of d-atom in Scheme - is that even possible? (If I can figure out how to do this I could probably eliminate the need for easyffi and solve my macro problem)
Is programming fun or what!!!

Bill




reply via email to

[Prev in Thread] Current Thread [Next in Thread]