[cvs-nhc98] patch applied (hat): Fixed prototype generation for functions returning a FunPtr, e.g.:

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 07:27:10 EDT 2006


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


More information about the Cvs-nhc98 mailing list