cvs commit: fptools/libraries/base/Foreign/C Error.hs
fptools/libraries/base/System/Posix Internals.hs fptools/libraries/network
/Network Socket.hsc
Alastair Reid
alastair@reid-consulting-uk.ltd.uk
Thu, 1 May 2003 15:59:58 +0100
SimonM
> > I'm really not keen on putting #includes in FFI declarations (as I've
> > expounded several times on the FFI list before). Doesn't Hugs have
> > something similar to -#include that can be used instead?
RossP
> No, but I'm starting to agree that it should, or rather that the FFI spec
> should.
Actually, you could use Hugs' ability to pass arbitrary command line arguments
to the compiler to do so. (This would use the gcc specific -inline command
line flag.)
But I would rather see the existing ffi spec implemented or the ffi spec
changed to allow some kind of 'foreign include' declarations than use this
crufty little feature.
--
Alastair Reid