[C2hs] enum define hooks
Gour
gour at mail.inet.hr
Fri Feb 29 12:16:19 EST 2008
Hi!
I'm on the verge of my 1st Haskell project where I want to use c2hs to
produce bindings for C library.
There are not (yet) "enum define" hooks implemented, so I wonder what's
convenient way to bind library with quite a lot of #defines like:
#define SE_SUN 0
#define SE_MOON 1
#define SE_MERCURY 2
#define SE_VENUS 3
#define SE_MARS 4
#define SE_JUPITER 5
#define SE_SATURN 6
and some in the form of:
#define SE_FNAME_DE200 "de200.eph"
#define SE_FNAME_DE403 "de403.eph"
#define SE_STARFILE "fixstars.cat"
Sincerely,
Gour
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/c2hs/attachments/20080229/ce049d76/attachment.bin
More information about the C2hs
mailing list