diff options
author | okan | 2011-03-22 10:57:31 +0000 |
---|---|---|
committer | okan | 2011-03-22 10:57:31 +0000 |
commit | c5841193570edf6eca119c583d9e790eef12dcb1 (patch) | |
tree | 82cb7021fa6527f717129aceabeaa68ff00fde3a /calmwm.h | |
parent | 6744c6dfbae31f04a8b397d35d144743b5845246 (diff) | |
download | cwm-c5841193570edf6eca119c583d9e790eef12dcb1.tar.gz |
introduce nitems macro, with the appropriate ifndef.
ok oga@
Diffstat (limited to '')
-rw-r--r-- | calmwm.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: calmwm.h,v 1.121 2011/03/22 10:52:37 okan Exp $ + * $Id: calmwm.h,v 1.122 2011/03/22 10:57:31 okan Exp $ */ #ifndef _CALMWM_H_ @@ -51,6 +51,10 @@ PointerMotionMask) #define SearchMask (KeyPressMask|ExposureMask) +#ifndef nitems +#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0])) +#endif + enum cwmcolor { CWM_COLOR_BORDOR_ACTIVE, CWM_COLOR_BORDER_INACTIVE, |