[C2hs] Pointers to structs without typedef
Manuel M T Chakravarty
chak at cse.unsw.edu.au
Wed Nov 9 08:29:02 EST 2005
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
More information about the C2hs
mailing list