[C2hs] preprocessor questoin
Manuel M T Chakravarty
chak@cse.unsw.edu.au
Wed, 16 Apr 2003 22:25:02 +1000 (EST)
Axel Simon <A.Simon@ukc.ac.uk> wrote,
> On Wed, Apr 16, 2003 at 12:19:45AM +1000, Manuel M. T. Chakravarty wrote:
> > > First of all there is a but that a newline in front of each # is lost so that cpp
> > > conditionals wind up on the line above (which was of course a comment, so passed
> > > unnoticed...).
> >
> > You mean that c2hs drops the newline in front of each cpp directive?
> Ups, yes. That is exactly what the sentence above should say.
I vaguely remember having seen this behaviour at some point,
but my versions seems to handle this correctly.
> > Anyway, I just checked your example and I think I messed
> > something up in the released version. I'll have a closer
> > look and let you know once it's fixed.
Check out
http://www.cse.unsw.edu.au/~chak/haskell/c2hs/c2hs-0.11.3.tar.gz
It should resolve the problem with conditionals.
Thanks for the bug report,
Manuel