
9 Nov
2005
9 Nov
'05
1:29 p.m.
Jelmer Vernooij:
Hi,
c2hs appears to have trouble with pointers to structs when not using typedefs. A simple that shows this behaviour:
module Foo where
#c
struct foo { char x; };
void bar(struct foo *x);
#endc
{#pointer *'struct foo' as Foo newtype#}
I think you meant {#pointer *foo as Foo newtype#} See also http://www.cse.unsw.edu.au/~chak/haskell/c2hs/docu/c2hs-3.html#ss3.10 Manuel