From d557adb5a1825fccdee62bab579da1201604d11c Mon Sep 17 00:00:00 2001 From: dgp Date: Fri, 21 Oct 2005 17:05:43 +0000 Subject: Revised code to build in situations where strchr(.,.) is a macro. --- unix/tclUnixChan.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 5162d00..111d9f3 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.61 2005/10/21 15:25:41 dkf Exp $ + * RCS: @(#) $Id: tclUnixChan.c,v 1.62 2005/10/21 17:05:43 dgp Exp $ */ #include "tclInt.h" /* Internal definitions for Tcl. */ @@ -1624,13 +1624,11 @@ TtyParseMode( * sure to allow for the case where strchr is a macro. [Bug: 5089] */ - if (strchr( #if defined(PAREXT) || defined(USE_TERMIO) - "noems", + if (strchr("noems", parity) == NULL) { #else - "noe", + if (strchr("noe", parity) == NULL) { #endif /* PAREXT|USE_TERMIO */ - parity) == NULL) { if (interp != NULL) { Tcl_AppendResult(interp, bad, " parity: should be ", #if defined(PAREXT) || defined(USE_TERMIO) -- cgit v0.12