diff options
author | jenglish <jenglish@flightlab.com> | 2013-02-27 20:33:33 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2013-02-27 20:33:33 (GMT) |
commit | 9c402c70fa3e0ee295ef6000c974e28d34cda6c3 (patch) | |
tree | 3ee5f99157621e613f79733921ee2f02971e103a /unix/tclUnixChan.c | |
parent | d02007e4bbc044285e4eae660bf0bac0d17b7c2e (diff) | |
download | tcl-9c402c70fa3e0ee295ef6000c974e28d34cda6c3.zip tcl-9c402c70fa3e0ee295ef6000c974e28d34cda6c3.tar.gz tcl-9c402c70fa3e0ee295ef6000c974e28d34cda6c3.tar.bz2 |
For termios, we never want DIRECT_BAUD; always use the symbolic constants
as prescribed by POSIX.
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r-- | unix/tclUnixChan.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 1fd6708..05948a3 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -16,13 +16,6 @@ #define SUPPORTS_TTY -#undef DIRECT_BAUD -#ifdef B4800 -# if (B4800 == 4800) -# define DIRECT_BAUD -# endif /* B4800 == 4800 */ -#endif /* B4800 */ - #ifdef USE_TERMIOS # include <termios.h> # ifdef HAVE_SYS_IOCTL_H @@ -153,10 +146,8 @@ static void TtyGetAttributes(int fd, TtyAttrs *ttyPtr); static int TtyGetOptionProc(ClientData instanceData, Tcl_Interp *interp, const char *optionName, Tcl_DString *dsPtr); -#ifndef DIRECT_BAUD static int TtyGetBaud(unsigned long speed); static unsigned long TtyGetSpeed(int baud); -#endif /* DIRECT_BAUD */ static FileState * TtyInit(int fd, int initialize); static void TtyModemStatusStr(int status, Tcl_DString *dsPtr); static int TtyParseMode(Tcl_Interp *interp, const char *mode, @@ -964,10 +955,6 @@ TtyGetOptionProc( ); } -#ifdef DIRECT_BAUD -# define TtyGetSpeed(baud) ((unsigned) (baud)) -# define TtyGetBaud(speed) ((int) (speed)) -#else /* !DIRECT_BAUD */ static const struct {int baud; unsigned long speed;} speeds[] = { #ifdef B0 @@ -1136,7 +1123,6 @@ TtyGetBaud( } return 0; } -#endif /* !DIRECT_BAUD */ /* *--------------------------------------------------------------------------- |