diff options
| author | jenglish@flightlab.com <jenglish> | 2013-02-27 20:33:33 (GMT) | 
|---|---|---|
| committer | jenglish@flightlab.com <jenglish> | 2013-02-27 20:33:33 (GMT) | 
| commit | 065e2961879476323ab0fc16814c7a359f4368da (patch) | |
| tree | 3ee5f99157621e613f79733921ee2f02971e103a /unix/tclUnixChan.c | |
| parent | 13653793eb8d5ecc491024eefbb104de167d4e53 (diff) | |
| download | tcl-065e2961879476323ab0fc16814c7a359f4368da.zip tcl-065e2961879476323ab0fc16814c7a359f4368da.tar.gz tcl-065e2961879476323ab0fc16814c7a359f4368da.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 */  /*   *---------------------------------------------------------------------------  | 
