RE: cpp

2001-02-23 Thread Alastair Reid
> What's Knit? A component language for C. Announcement attached. > Why not just distribute binaries for the platforms of interest? People feel uncomfortable if they can't build from source themselves. Generating binaries for a decent range of platforms is a bunch of work (especially given the

Modified proposal for default decls

2001-02-23 Thread malcolm-ffi
I am reasonably convinced by the need for an extensible attribute-style specification such as Marcin has been proposing. However I am also intrigued by Alastair's "interesting" interpretation of one of my earlier suggestions, and it led me to the following proposal, modifying Marcin's design for

Re: Summary of current change suggestions

2001-02-23 Thread Fergus Henderson
On 23-Feb-2001, Simon Marlow <[EMAIL PROTECTED]> wrote: > > I agree. Would it be fixed by just #including Stg.h after any > -#includes, or would that create more problems? ghc uses gcc global register variables on x86, doesn't it? If so, they need to be declared first thing, before any functio

RE: Summary of current change suggestions

2001-02-23 Thread Simon Marlow
> On Fri, 23 Feb 2001, Fergus Henderson wrote: > > > OK, now how about things where you need to #define symbols before > > including the header file? > > Choose one: > 1. Write a forwarding header which #defines and #includes. > 2. Use compiler-specific switches to get #defines (-D and > -optc

RE: Summary of current change suggestions

2001-02-23 Thread Marcin 'Qrczak' Kowalczyk
On Fri, 23 Feb 2001, Simon Marlow wrote: > I agree. Would it be fixed by just #including Stg.h after any > -#includes, or would that create more problems? If HsFFI.h indirectly includes system headers, then I'm afraid it's not enough for hsc2hs, which automatically includes HsFFI.h before user-

Re: Summary of current change suggestions

2001-02-23 Thread Marcin 'Qrczak' Kowalczyk
On Fri, 23 Feb 2001, Fergus Henderson wrote: > OK, now how about things where you need to #define symbols before > including the header file? Choose one: 1. Write a forwarding header which #defines and #includes. 2. Use compiler-specific switches to get #defines (-D and -optc-D in ghc). 3. Exten

Re: Summary of current change suggestions

2001-02-23 Thread Fergus Henderson
On 22-Feb-2001, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> wrote: > Thu, 22 Feb 2001 12:08:22 -, Simon Marlow <[EMAIL PROTECTED]> pisze: > > > Don't forget you might need multiple includes, eg. & > > for socket(), and ordering is important. > > Easy with my proposal: > > foreign import

Re: cpp

2001-02-23 Thread Fergus Henderson
On 22-Feb-2001, Alastair Reid <[EMAIL PROTECTED]> wrote: > While on the subject of preprocessors, I thought I'd mention a need I've found > in distributing tools like Knit where the intended audience isn't expected to: What's Knit? > 1) Care either way about it being implemented in Haskell > >

RE: cpp

2001-02-23 Thread Simon Marlow
> > hsc2hs is in ghc-4.11. > > Did I miss the last 3 releases? I'm still stuck with > something between 4.08.1 > and 4.08.2 waiting for a debian package and freebsd port to > appear for 4.08.2. > :-) 4.11 is the current devel version, which will be released as 5.00. I submitted the 4.08.2 po