diff src/console-tty.h @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents c5d627a313b1
children 1f50e6fe4f3f
line wrap: on
line diff
--- a/src/console-tty.h	Mon Aug 13 11:06:08 2007 +0200
+++ b/src/console-tty.h	Mon Aug 13 11:07:10 2007 +0200
@@ -220,21 +220,17 @@
 #define TTY_FLAGS(c) (CONSOLE_TTY_DATA (c)->flags)
 #define TTY_COST(c) (CONSOLE_TTY_DATA (c)->cost)
 
-#define TTY_INC_CURSOR_X(c, n)						\
-do									\
-{									\
-  int __tempn__ = (n);							\
+#define TTY_INC_CURSOR_X(c, n) do {					\
+  int TICX_n = (n);							\
   assert (CONSOLE_TTY_CURSOR_X (c) == CONSOLE_TTY_REAL_CURSOR_X (c));	\
-  CONSOLE_TTY_CURSOR_X (c) += __tempn__;				\
-  CONSOLE_TTY_REAL_CURSOR_X (c) += __tempn__;				\
+  CONSOLE_TTY_CURSOR_X (c) += TICX_n;					\
+  CONSOLE_TTY_REAL_CURSOR_X (c) += TICX_n;				\
 } while (0)
 
-#define TTY_INC_CURSOR_Y(c, n)			\
-do						\
-{						\
-  int __tempn__ = (n);				\
-  CONSOLE_TTY_CURSOR_Y (c) += __tempn__;	\
-  CONSOLE_TTY_REAL_CURSOR_Y (c) += __tempn__;	\
+#define TTY_INC_CURSOR_Y(c, n) do {		\
+  int TICY_n = (n);				\
+  CONSOLE_TTY_CURSOR_Y (c) += TICY_n;		\
+  CONSOLE_TTY_REAL_CURSOR_Y (c) += TICY_n;	\
 } while (0)
 
 struct tty_device