Re: [Cython] Add support for the offsetof() C macro

2013-04-05 Thread Nikita Nemkin
On Fri, 05 Apr 2013 23:31:44 +0600, Sturla Molden wrote: offsetof() is not supported by current Cython, and I have not found any workaround (except hardcoding offsets for a specific architecture and compiler, but this is obviously wrong). offsetof() would certainly be very useful, but in the

Re: [Cython] Add support for the offsetof() C macro

2013-04-05 Thread Sturla Molden
On 03.04.2013 12:53, Nikita Nemkin wrote: offsetof() is not supported by current Cython, and I have not found any workaround (except hardcoding offsets for a specific architecture and compiler, but this is obviously wrong). offsetof() would certainly be very useful, but in the meantime offseto