>>>>> "Manuel" == Manuel M T Chakravarty <[EMAIL PROTECTED]> writes:
Hi Manuel,
Thank you for reply.
Manuel> I'd recommend to use inline C in the .chs file, where you define
Manuel> suitable enum with something like
Manuel> enum SE_ENUM { SE_ENUM_SUN = SE_SUN, <and so on>
Manuel> }
Manuel> and then let c2hs marshal SE_ENUM.
I was looking at examples and came up with the same solution:
#c
enum PlanetNumbers {
SeSun = SE_SUN,
...
};
#endc
{#enum PlanetNumbers {}#}
It seems as very good workaround in the absence of "enum define" hooks.
Thank you for c2hs. I'm happy to use it...
Sincerely,
Gour
--
Gour | Zagreb, Croatia | GPG key: C6E7162D
----------------------------------------------------------------
pgpsAmOOjeTBg.pgp
Description: PGP signature
_______________________________________________ C2hs mailing list [email protected] http://www.haskell.org/mailman/listinfo/c2hs
