Move ARRAY_LENGTH out of public headers
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 19 Oct 2012 21:08:38 +0000 (17:08 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 19 Oct 2012 21:08:38 +0000 (17:08 -0400)
commitbdd272f024744b4ed5ba6daedef7eb023bcac7cb
tree61725e939ace9d69f52ddb6cc0f610e525a878b9
parent56061674cd80e701174c1f1b1bf575aa308ecbd8
Move ARRAY_LENGTH out of public headers

Exporting unprefixed symbols is a pretty bad idea so don't do that.
Instea of redefining it WL_ARRAY_LENGTH, we just move the define to
our private header.  The scanner generates code that uses ARRAY_LENGTH,
but we can just make it count the number elements and emit an integer
constant instead.
cursor/wayland-cursor.c
src/event-loop.c
src/scanner.c
src/wayland-private.h
src/wayland-util.h