Re: [Pixman] [PATCH 1/8] Add doubly linked lists

2012-05-30 Thread Alan Coopersmith
On 05/30/12 04:41 PM, Søren Sandmann wrote: +# define OFFSET_OF(type, member) \ +((unsigned long)type *)0)-member)) +#endif Why not use the offsetof(type, member) macro that C89 guarantees to be provided by #include stddef.h instead of coding up your

Re: [Pixman] [PATCH 1/8] Add doubly linked lists

2012-05-30 Thread Søren Sandmann
Alan Coopersmith alan.coopersm...@oracle.com writes: On 05/30/12 04:41 PM, Søren Sandmann wrote: +# define OFFSET_OF(type, member) \ +((unsigned long)type *)0)-member)) +#endif Why not use the offsetof(type, member) macro that C89 guarantees to be