summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-19 09:17:03 (GMT)
committerhobbs <hobbs>2000-04-19 09:17:03 (GMT)
commit1f3c8f1c86ed3c5c1185c97cc07e545acf3e07a5 (patch)
treefbc785d7e1ab1ff3a738990dbcb0618dadb1e346 /unix/tclUnixChan.c
parent7f65ab0b58bee6c8d6c49e4e831d34970bc6fedd (diff)
downloadtcl-1f3c8f1c86ed3c5c1185c97cc07e545acf3e07a5.zip
tcl-1f3c8f1c86ed3c5c1185c97cc07e545acf3e07a5.tar.gz
tcl-1f3c8f1c86ed3c5c1185c97cc07e545acf3e07a5.tar.bz2
have to allow for strchr being a macro in TtyParseProc
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 3420fd4..1bf4818 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixChan.c,v 1.16 2000/04/19 08:32:46 hobbs Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.17 2000/04/19 09:17:03 hobbs Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -1134,15 +1134,16 @@ TtyParseMode(interp, mode, speedPtr, parityPtr, dataPtr, stopPtr)
}
/*
* Only allow setting mark/space parity on platforms that support it
+ * Make sure to allow for the case where strchr is a macro.
* [Bug: 5089]
*/
- if (strchr(
+ if (
#if defined(PAREXT) || defined(USE_TERMIO)
- "noems",
+ strchr("noems", parity) == NULL
#else
- "noe",
+ strchr("noe", parity) == NULL
#endif
- parity) == NULL) {
+ ) {
if (interp != NULL) {
Tcl_AppendResult(interp, bad,
#if defined(PAREXT) || defined(USE_TERMIO)