Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
379:76b7d63099ad | 380:8626e4521993 |
---|---|
218 #define TTY_SE(c) (CONSOLE_TTY_DATA (c)->se) | 218 #define TTY_SE(c) (CONSOLE_TTY_DATA (c)->se) |
219 #define TTY_SD(c) (CONSOLE_TTY_DATA (c)->sd) | 219 #define TTY_SD(c) (CONSOLE_TTY_DATA (c)->sd) |
220 #define TTY_FLAGS(c) (CONSOLE_TTY_DATA (c)->flags) | 220 #define TTY_FLAGS(c) (CONSOLE_TTY_DATA (c)->flags) |
221 #define TTY_COST(c) (CONSOLE_TTY_DATA (c)->cost) | 221 #define TTY_COST(c) (CONSOLE_TTY_DATA (c)->cost) |
222 | 222 |
223 #define TTY_INC_CURSOR_X(c, n) \ | 223 #define TTY_INC_CURSOR_X(c, n) do { \ |
224 do \ | 224 int TICX_n = (n); \ |
225 { \ | |
226 int __tempn__ = (n); \ | |
227 assert (CONSOLE_TTY_CURSOR_X (c) == CONSOLE_TTY_REAL_CURSOR_X (c)); \ | 225 assert (CONSOLE_TTY_CURSOR_X (c) == CONSOLE_TTY_REAL_CURSOR_X (c)); \ |
228 CONSOLE_TTY_CURSOR_X (c) += __tempn__; \ | 226 CONSOLE_TTY_CURSOR_X (c) += TICX_n; \ |
229 CONSOLE_TTY_REAL_CURSOR_X (c) += __tempn__; \ | 227 CONSOLE_TTY_REAL_CURSOR_X (c) += TICX_n; \ |
230 } while (0) | 228 } while (0) |
231 | 229 |
232 #define TTY_INC_CURSOR_Y(c, n) \ | 230 #define TTY_INC_CURSOR_Y(c, n) do { \ |
233 do \ | 231 int TICY_n = (n); \ |
234 { \ | 232 CONSOLE_TTY_CURSOR_Y (c) += TICY_n; \ |
235 int __tempn__ = (n); \ | 233 CONSOLE_TTY_REAL_CURSOR_Y (c) += TICY_n; \ |
236 CONSOLE_TTY_CURSOR_Y (c) += __tempn__; \ | |
237 CONSOLE_TTY_REAL_CURSOR_Y (c) += __tempn__; \ | |
238 } while (0) | 234 } while (0) |
239 | 235 |
240 struct tty_device | 236 struct tty_device |
241 { | 237 { |
242 #ifdef HAVE_TERMIOS | 238 #ifdef HAVE_TERMIOS |