>>  > Secondly, does anyone have any suggestions on how to provide an
>> > interface to this?
>> 
>> > void getyx(WINDOW *win, int y, int x);


> What's wrong with just doing this in the plain FFI?

>   foreign import ccall "getyx" getyx 
>          :: Ptr Window -> Ptr CInt -> Ptr CInt -> IO ()

> Have I missed something?

You need at least one wrapper because getyx is a macro.  Note that the
arguments are ints _not_ int*s.  

-- 
Alastair Reid   
[EMAIL PROTECTED]  
http://www.reid-consulting-uk.ltd.uk/alastair/


_______________________________________________
FFI mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/ffi

Reply via email to