comparison src/systty.h @ 175:2d532a89d707 r20-3b14

Import from CVS: tag r20-3b14
author cvs
date Mon, 13 Aug 2007 09:50:14 +0200
parents 85ec50267440
children 850242ba4a81
comparison
equal deleted inserted replaced
174:bb3568571b84 175:2d532a89d707
423 423
424 /* There is always one of the following elements, so there is no need 424 /* There is always one of the following elements, so there is no need
425 for dummy get and set definitions. */ 425 for dummy get and set definitions. */
426 #ifdef HAVE_TCATTR 426 #ifdef HAVE_TCATTR
427 struct termios main; 427 struct termios main;
428 #else 428 #else /* !HAVE_TCATTR */
429 #ifdef HAVE_TERMIO 429 #ifdef HAVE_TERMIO
430 struct termio main; 430 struct termio main;
431 #else 431 #else /* !HAVE_TERMIO */
432 #ifdef VMS 432 #ifdef VMS
433 struct sensemode main; 433 struct sensemode main;
434 #else 434 #else /* !VMS */
435 #ifdef DOS_NT 435 #ifdef DOS_NT
436 int main; 436 int main;
437 #else /* not DOS_NT */ 437 #else /* not DOS_NT */
438 struct sgttyb main; 438 struct sgttyb main;
439 #endif /* not DOS_NT */ 439 #endif /* not DOS_NT */
440 #endif /* !VMS */ 440 #endif /* !VMS */
441 #endif 441 #endif /* !HAVE_TERMIO */
442 #endif 442 #endif /* !HAVE_TCATTR */
443 443
444 /* If we have TERMIOS, we don't need to do this - they're taken care of 444 /* If we have TERMIOS, we don't need to do this - they're taken care of
445 by the tc*attr calls. */ 445 by the tc*attr calls. */
446 #ifndef HAVE_TERMIOS 446 #ifndef HAVE_TERMIOS
447 #ifdef HAVE_LTCHARS 447 #ifdef HAVE_LTCHARS
448 struct ltchars ltchars; 448 struct ltchars ltchars;
449 #endif 449 #endif /* HAVE_LTCHARS */
450 450
451 #ifdef HAVE_TCHARS 451 #ifdef HAVE_TCHARS
452 struct tchars tchars; 452 struct tchars tchars;
453 int lmode; 453 int lmode;
454 #endif 454 #endif /* HAVE_TCHARS */
455 #endif 455 #endif /* HAVE_TERMIOS */
456 }; 456 };
457 457
458 /* Define EMACS_GET_TTY and EMACS_SET_TTY, 458 /* Define EMACS_GET_TTY and EMACS_SET_TTY,
459 the macros for reading and setting parts of `struct emacs_tty'. 459 the macros for reading and setting parts of `struct emacs_tty'.
460 460
473 473
474 #ifdef TABDLY 474 #ifdef TABDLY
475 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) 475 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3)
476 #else 476 #else
477 #define EMACS_TTY_TABS_OK(p) 1 477 #define EMACS_TTY_TABS_OK(p) 1
478 #endif 478 #endif /* TABDLY */
479 479
480 #else /* not def HAVE_TERMIOS */ 480 #else /* not def HAVE_TERMIOS */
481 #ifdef HAVE_TERMIO 481 #ifdef HAVE_TERMIO
482 482
483 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) 483 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3)