[Pixman] [PATCH 1/8] Add doubly linked lists
Alan Coopersmith
alan.coopersmith at oracle.com
Wed May 30 17:31:30 PDT 2012
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 own? Presumably GCC's
__builtin_offsetof is designed to mimic the standard C offsetof.
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
More information about the Pixman
mailing list