[PATCH:xf86-input-keyboard 07/21] Add translation table for AT/PS2 pseudo XT scancodes.

Alan Coopersmith alan.coopersmith at oracle.com
Sun Jul 28 14:39:26 PDT 2013


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-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list