From 1f3c8f1c86ed3c5c1185c97cc07e545acf3e07a5 Mon Sep 17 00:00:00 2001 From: hobbs Date: Wed, 19 Apr 2000 09:17:03 +0000 Subject: have to allow for strchr being a macro in TtyParseProc --- unix/tclUnixChan.c | 11 ++++++----- 1 file 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) -- cgit v0.12