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

[MacRuby-devel] Bitfields and arrays in structures

2010-01-04 Thread Steven Canfield
Hello all, I'm new to MacRuby so please bear with me. Yesterday I was going through the buglist and happened upon bug #280 (https://www.macruby.org/trac/ticket/280 ) "NSNumber#decimalValue cant convert to ruby object". I created an objective c file to print out the method signature and I got