Mercurial > hg > xemacs-beta
comparison src/systty.h @ 513:e159a0b4bed4
[xemacs-hg @ 2001-05-07 07:49:18 by martinb]
TTY configury portability improvements.
author | martinb |
---|---|
date | Mon, 07 May 2001 07:49:19 +0000 |
parents | abe6d1db359e |
children | c69610198c35 |
comparison
equal
deleted
inserted
replaced
512:14227e8a3f1f | 513:e159a0b4bed4 |
---|---|
25 | 25 |
26 #ifdef HAVE_TERMIOS | 26 #ifdef HAVE_TERMIOS |
27 # define HAVE_TCATTR | 27 # define HAVE_TCATTR |
28 #endif | 28 #endif |
29 | 29 |
30 /* If we defined these before and we are about to redefine them, | |
31 prevent alarming warnings. */ | |
32 #ifdef BSD_TERMIOS | |
33 #undef NL0 | |
34 #undef NL1 | |
35 #undef CR0 | |
36 #undef CR1 | |
37 #undef CR2 | |
38 #undef CR3 | |
39 #undef TAB0 | |
40 #undef TAB1 | |
41 #undef TAB2 | |
42 #undef XTABS | |
43 #undef BS0 | |
44 #undef BS1 | |
45 #undef FF0 | |
46 #undef FF1 | |
47 #undef ECHO | |
48 #undef NOFLSH | |
49 #undef TOSTOP | |
50 #undef FLUSHO | |
51 #undef PENDIN | |
52 #endif | |
53 | 30 |
54 /* Include the proper files. */ | 31 /* Include the proper files. */ |
55 | 32 |
56 #ifdef HAVE_UNISTD_H | 33 #ifdef HAVE_UNISTD_H |
57 #include <unistd.h> | 34 #include <unistd.h> |
391 | 368 |
392 /* --------------------------------------------------------- */ | 369 /* --------------------------------------------------------- */ |
393 /* Define EMACS_TTY_TABS_OK */ | 370 /* Define EMACS_TTY_TABS_OK */ |
394 /* --------------------------------------------------------- */ | 371 /* --------------------------------------------------------- */ |
395 | 372 |
396 #ifdef HAVE_TERMIOS | 373 #if defined (TABDLY) && defined (TAB3) |
397 | 374 # define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) |
398 #ifdef TABDLY | 375 #elif defined (OXTABS) |
399 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) | 376 # define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & OXTABS) != OXTABS) |
400 #else | 377 #else |
401 #define EMACS_TTY_TABS_OK(p) 1 | 378 # define EMACS_TTY_TABS_OK(p) 1 |
402 #endif /* TABDLY */ | 379 #endif |
403 | |
404 #else /* not def HAVE_TERMIOS */ | |
405 #ifdef HAVE_TERMIO | |
406 | |
407 #define EMACS_TTY_TABS_OK(p) (((p)->main.c_oflag & TABDLY) != TAB3) | |
408 | |
409 #else /* neither HAVE_TERMIO nor HAVE_TERMIOS */ | |
410 #ifdef WIN32_NATIVE | |
411 #define EMACS_TTY_TABS_OK(p) 0 | |
412 #else /* not WIN32_NATIVE */ | |
413 #define EMACS_TTY_TABS_OK(p) (((p)->main.sg_flags & XTABS) != XTABS) | |
414 #endif /* not WIN32_NATIVE */ | |
415 | |
416 #endif /* not def HAVE_TERMIO */ | |
417 #endif /* not def HAVE_TERMIOS */ | |
418 | 380 |
419 #endif /* INCLUDED_systty_h_ */ | 381 #endif /* INCLUDED_systty_h_ */ |