[PATCH] fix add default mode

Simon Thum simon.thum at gmx.de
Thu Mar 13 14:01:00 PDT 2008

Hong Liu wrote:
> -	printf "const int xf86NumDefaultModes = sizeof(xf86NumDefaultModes) / sizeof(DisplayModeRec);"
> +	printf "const int xf86NumDefaultModes = sizeof(xf86DefaultModes) / sizeof(DisplayModeRec);"
Hi, I just saw that and wondered if there is anything that makes
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
More readable IMO, which helps prevent such bugs.

More information about the xorg mailing list