
reid 2002/06/17 14:46:48 PDT
Modified files: src HsFFI.h builtin.c connect.h ffi.c static.c Log: Made dynamic and wrapper forms work.
This is my current test program:
Thanks Alastair, I slurped your test program into GHC's test suite. I had to make a few changes to get it to run: the main one is that you used 'Ptr Char' in a lot of places where the type should have been 'Ptr CChar', i.e. CString. I guess in Hugs that doesn't matter too much because Char and CChar have the same representation at the C level, but that's not the case for GHC. I've attached my version. You might want to take a look in fptools/testsuite/tests/ghc-regress/ccall, and see if there's anything in there that might be useful for your test suite. Cheers, Simon