comparison src/winslots.h @ 286:57709be46d1b r21-0b41

Import from CVS: tag r21-0b41
author cvs
date Mon, 13 Aug 2007 10:35:03 +0200
parents 558f606b08ae
children 70ad99077275
comparison
equal deleted inserted replaced
285:9a3756523c1b 286:57709be46d1b
23 23
24 /* Split out of window.h and window.c 24 /* Split out of window.h and window.c
25 by Kirill Katsnelson <kkm@kis.ru>, May 1998 */ 25 by Kirill Katsnelson <kkm@kis.ru>, May 1998 */
26 26
27 #ifdef WINDOW_SLOT_DECLARATION 27 #ifdef WINDOW_SLOT_DECLARATION
28 #define WINDOW_SLOT_ARRAY(slot, size, compare) WINDOW_SLOT(slot[size], compare) 28 #define WINDOW_SLOT_ARRAY(slot, size, compare) WINDOW_SLOT (slot[size], compare)
29 #else 29 #else
30 #define WINDOW_SLOT_ARRAY(slot, size, compare) do { \ 30 #define WINDOW_SLOT_ARRAY(slot, size, compare) do { \
31 int i; \ 31 int wsaidx; \
32 for (i = 0; i < size; i++) \ 32 for (wsaidx = 0; wsaidx < size; wsaidx++) \
33 { \ 33 { \
34 WINDOW_SLOT (slot[i], compare); \ 34 WINDOW_SLOT (slot[wsaidx], compare); \
35 } \ 35 } \
36 } while (0); 36 } while (0);
37 #endif 37 #endif
38 38
39 #define EQUAL_WRAPPED(x,y) internal_equal ((x), (y), 0) 39 #define EQUAL_WRAPPED(x,y) internal_equal ((x), (y), 0)
40 40
41 /*** Non-specifier vars of window and window config ***/ 41 /*** Non-specifier vars of window and window config ***/