On 07/28/13 09:13 AM, walter harms wrote:
2. check if there is a macro like ARRAY_SIZE(x) (sizeof(x)/sizeof(*x)) (i have
no idea ARRAY_SIZE if from linux kernel)
<xorg/dix.h> has such a macro:
#define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0]))
Not sure that's a good header to use from a driver though.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel