Re: [MacRuby-devel] Bitfields and arrays in structures

2010-01-05 Thread Vincent Isambart
> Any idea on how to handle C bitfields? I don't know exactly how the compiler packs bitfields (especially it seems to depend on the compiler and the platform). Anyway for MacRuby we only officially support two platforms : MacOS X (>= 10.5) on i386 and x86_64, both being of course little endian. Y

Re: [MacRuby-devel] Bitfields and arrays in structures

2010-01-05 Thread Steven Canfield
Does anyone have any thoughts on this? The plan was to have a function returning a type like: typedef struct arrayType { int values[4]; } arrayType; give a Boxed object that has an array of values. Does that make sense? Any idea on how to handle C bitfields? I'm trudging ahead with a patch