summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authormdejong <mdejong@noemail.net>2003-01-26 05:59:37 (GMT)
committermdejong <mdejong@noemail.net>2003-01-26 05:59:37 (GMT)
commitd4605f45baeb54c6320117b98dfc2c5e6728d78a (patch)
tree2e93369723b56eef9c19628901fb5aea461eeb5a /generic/tclIO.c
parenta723a185f7423882157f7844e7023ba4485410d5 (diff)
downloadtcl-d4605f45baeb54c6320117b98dfc2c5e6728d78a.zip
tcl-d4605f45baeb54c6320117b98dfc2c5e6728d78a.tar.gz
tcl-d4605f45baeb54c6320117b98dfc2c5e6728d78a.tar.bz2
* generic/tclIO.c (Tcl_CutChannel, Tcl_SpliceChannel):
Invoke TclpCutFileChannel and TclpSpliceFileChannel. * generic/tclInt.h: Declare TclpCutFileChannel and TclpSpliceFileChannel. * unix/tclUnixChan.c (FileCloseProc, TclpOpenFileChannel, Tcl_MakeFileChannel, TclpCutFileChannel, TclpSpliceFileChannel): Implement thread load data cut and splice for file channels. This avoids an invalid memory ref when compiled with -DDEPRECATED. * win/tclWinChan.c (FileCloseProc, TclpCutFileChannel, TclpSpliceFileChannel): Implement thread load data cut and splice for file channels. This avoids an invalid memory ref that was showing up in the thread extension. FossilOrigin-Name: 40bc638062775760b85fbf7679e73c0e285d1cb0
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index e1298d5..5e2338d 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.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: tclIO.c,v 1.58 2003/01/24 11:59:29 vincentdarley Exp $
+ * RCS: @(#) $Id: tclIO.c,v 1.59 2003/01/26 05:59:37 mdejong Exp $
*/
#include "tclInt.h"
@@ -2409,6 +2409,8 @@ Tcl_CutChannel(chan)
}
statePtr->nextCSPtr = (ChannelState *) NULL;
+
+ TclpCutFileChannel(chan);
}
/*
@@ -2460,6 +2462,8 @@ Tcl_SpliceChannel(chan)
*/
statePtr->managingThread = Tcl_GetCurrentThread ();
+
+ TclpSpliceFileChannel(chan);
}
/*