Advertise globals using a new display event.

This commit is contained in:
Kristian Høgsberg 2008-12-21 20:25:16 -05:00
parent 0ab262421a
commit bf967b469f
3 changed files with 62 additions and 61 deletions

View file

@ -31,6 +31,8 @@
#endif
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
#define ALIGN(n, a) ( ((n) + ((a) - 1)) & ~((a) - 1) )
#define DIV_ROUNDUP(n, a) ( ((n) + ((a) - 1)) / (a) )
#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \