diff options
author | dkf <dkf@noemail.net> | 2007-11-18 22:30:09 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2007-11-18 22:30:09 (GMT) |
commit | f9fb05505005df6b8dac06ec41dd2c4eb648ba6d (patch) | |
tree | a168b4a14a7f4bf466ffa4d2ea1903339cbd0221 /generic/tclIOCmd.c | |
parent | a0af3a4c092f513cad30843eadb9af9531795327 (diff) | |
download | tcl-f9fb05505005df6b8dac06ec41dd2c4eb648ba6d.zip tcl-f9fb05505005df6b8dac06ec41dd2c4eb648ba6d.tar.gz tcl-f9fb05505005df6b8dac06ec41dd2c4eb648ba6d.tar.bz2 |
More minor cleanup
FossilOrigin-Name: 2746b844cadd89c74077393da3fe02624ac8b162
Diffstat (limited to 'generic/tclIOCmd.c')
-rw-r--r-- | generic/tclIOCmd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c index f69506c..cc01b91 100644 --- a/generic/tclIOCmd.c +++ b/generic/tclIOCmd.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOCmd.c,v 1.45 2007/11/11 19:32:15 msofer Exp $ + * RCS: @(#) $Id: tclIOCmd.c,v 1.46 2007/11/18 22:32:47 dkf Exp $ */ #include "tclInt.h" @@ -265,18 +265,18 @@ Tcl_GetsObjCmd( } linePtr = Tcl_NewObj(); - lineLen = Tcl_GetsObj(chan, linePtr); if (lineLen < 0) { if (!Tcl_Eof(chan) && !Tcl_InputBlocked(chan)) { Tcl_DecrRefCount(linePtr); /* - * TIP #219. - * Capture error messages put by the driver into the bypass area - * and put them into the regular interpreter result. Fall back to - * the regular message if nothing was found in the bypass. + * TIP #219. Capture error messages put by the driver into the + * bypass area and put them into the regular interpreter result. + * Fall back to the regular message if nothing was found in the + * bypass. */ + if (!TclChanCaughtErrorBypass(interp, chan)) { Tcl_ResetResult(interp); Tcl_AppendResult(interp, "error reading \"", name, "\": ", @@ -1665,7 +1665,7 @@ TclChanPendingObjCmd( Tcl_Channel chan; int index, mode; char *arg; - static const char *options[] = {"input", "output", (char *) NULL}; + static const char *options[] = {"input", "output", NULL}; enum options {PENDING_INPUT, PENDING_OUTPUT}; if (objc != 3) { |