diff options
author | dgp <dgp@users.sourceforge.net> | 2016-07-18 16:46:34 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-07-18 16:46:34 (GMT) |
commit | 3766e26550a1315f09945ab1162d78d0143d32a2 (patch) | |
tree | 542c90fa64596001e6147e5f9b5d2e9145eeb38f /generic/tclIO.h | |
parent | c95dfd2ed336a593d21fa9098b5c82a8761b02d7 (diff) | |
parent | a127a9e4aa8b2a9a386cd7fe694bfef8f1cf5264 (diff) | |
download | tcl-3766e26550a1315f09945ab1162d78d0143d32a2.zip tcl-3766e26550a1315f09945ab1162d78d0143d32a2.tar.gz tcl-3766e26550a1315f09945ab1162d78d0143d32a2.tar.bz2 |
[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups.
Diffstat (limited to 'generic/tclIO.h')
-rw-r--r-- | generic/tclIO.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tclIO.h b/generic/tclIO.h index b799375..ffbfa31 100644 --- a/generic/tclIO.h +++ b/generic/tclIO.h @@ -214,6 +214,8 @@ typedef struct ChannelState { * because it happened in the background. The * value is the chanMg, if any. #219's * companion to 'unreportedError'. */ + int epoch; /* Used to test validity of stored channelname + * lookup results. */ } ChannelState; /* @@ -275,10 +277,6 @@ typedef struct ChannelState { * usable, but it may not be closed * again from within the close * handler. */ -#define CHANNEL_TAINTED (1<<20) /* Channel stack structure has changed. - * Used by Channel Tcl_Obj type to - * determine if we have to revalidate - * the channel. */ #define CHANNEL_CLOSEDWRITE (1<<21) /* Channel write side has been closed. * No further Tcl-level write IO on * the channel is allowed. */ |