[C2hs] Pointers to structs without typedef

Jelmer Vernooij jelmer at samba.org
Mon Nov 7 07:31:20 EST 2005


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#}

Am I doing something incorrectly or is this simply not supported?

Cheers,

Jelmer


More information about the C2hs mailing list