[Chicken-users] Re: FFI with XQueryTree

2009-03-12 Thread Eduardo Cavazos
Eduardo Cavazos wrote: XQueryTree is a function from xlib: extern Status XQueryTree( Display*/* display */, Window/* w */, Window*/* root_return */, Window*/* parent_return */, Window**/* children_return */, unsigned int*/* nch

Re: [Chicken-users] Re: FFI with XQueryTree

2009-03-13 Thread Jim Ursetto
You can use locations for your other vars as well -- in this case it should work even for 64-bit values. (let-location ((root unsigned-long) (parent unsigned-long) (children (c-pointer unsigned-long)) (nchildren unsigned-long)) (XQueryTree dpy win (location root)

Re: [Chicken-users] Re: FFI with XQueryTree

2009-03-13 Thread Jim Ursetto
On Fri, Mar 13, 2009 at 3:16 AM, Jim Ursetto wrote: > You can use locations for your other vars as well -- in this case it > should work even for 64-bit values. Urgh. I read the header files. Window is typed as unsigned long on 32-bit systems and unsigned int on 64-bit systems (yuck!). I would