
Duncan Coutts wrote: [something bad about arrays embedded in structures] I just got bitten by the same bug. C2HS doesn't even attempt to calculate the size of arrays inside structures, so not only sizeOf hooks go wrong, but get and set hooks, too. My first call into libdb accordingly ended somewhere in the wilderness. Attached is my attempt at a fix. I'm not sure this is the most elegant way to go about it, but some limited testing shows it working. BTW, this comment at GenBind.hs line 1662 is no longer valid, isn't it?
-- * we make use of the assertion that `extractCompType' can only return a -- `DefinedET' when the declaration is a pointer declaration
Regards, Udo.
Duncan
_______________________________________________ C2hs mailing list C2hs@haskell.org http://www.haskell.org/mailman/listinfo/c2hs
-- Worrying is like rocking in a rocking chair -- It gives you something to do, but it doesn't get you anywhere.