diff 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
line wrap: on
line diff
--- a/src/winslots.h	Mon Aug 13 10:34:15 2007 +0200
+++ b/src/winslots.h	Mon Aug 13 10:35:03 2007 +0200
@@ -25,15 +25,15 @@
    by Kirill Katsnelson <kkm@kis.ru>, May 1998 */
 
 #ifdef WINDOW_SLOT_DECLARATION
-#define WINDOW_SLOT_ARRAY(slot, size, compare) WINDOW_SLOT(slot[size], compare)
+#define WINDOW_SLOT_ARRAY(slot, size, compare) WINDOW_SLOT (slot[size], compare)
 #else
-#define WINDOW_SLOT_ARRAY(slot, size, compare) do {		\
-    int i;							\
-    for (i = 0; i < size; i++) 					\
-      {								\
-	WINDOW_SLOT (slot[i], compare);				\
-      }								\
-  } while (0);
+#define WINDOW_SLOT_ARRAY(slot, size, compare) do {	\
+  int wsaidx;						\
+  for (wsaidx = 0; wsaidx < size; wsaidx++)		\
+    {							\
+      WINDOW_SLOT (slot[wsaidx], compare);		\
+    }							\
+} while (0);
 #endif
 
 #define EQUAL_WRAPPED(x,y) internal_equal ((x), (y), 0)