WPrefs: created macro 'wlengthof_nocheck' for the cases were wlengthof cannot be...
commit6ac27ba842e796497196541d5dccbcba38fc71b0
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 26 Oct 2014 18:58:41 +0000 (26 19:58 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 2 Nov 2014 12:13:19 +0000 (2 13:13 +0100)
treede7e5e0aa89f610d1692b8f3c2cf7457955ac6e0
parent7d09b2c04f99c25c6b02a93b8e12533312cc8bac
WPrefs: created macro 'wlengthof_nocheck' for the cases were wlengthof cannot be used

Because the macro wlengthof preforms a check of validity of its argument
with static_assert, there is a use case where it fails with a compiler
error. This patch introduces an alternate macro without the check, to be
used only for this specific case.

To be able to use the size of the array, a few of those array declaration
have to be moved before the structure in which their size is used.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/Appearance.c
WPrefs.app/Docks.c
WPrefs.app/Expert.c
WPrefs.app/WPrefs.h