
10 Oct
2006
10 Oct
'06
7:27 a.m.
Sat Jun 12 07:20:41 PDT 2004 panne * Fixed prototype generation for functions returning a FunPtr, e.g.: foreign import ccall unsafe "foo" foo :: CString -> IO (FunPtr a) The former prototype was: extern NodePtr(*)() foo(void*); but this is not really C, we want: extern NodePtr(*foo(void*))(); The fix could probably need some review & cleanup => Malcolm? :-) M ./src/compiler98/Foreign.hs +6