summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-04-21 18:55:41 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-04-21 18:55:41 (GMT)
commita07adf4d6d28771d9aa74ef06526e5fb3035f5c1 (patch)
treef4294bd466e879159dfdc4825d23afe702d9183c /generic/tclIO.h
parent87f75437c09a8e8fbe5fe0eaa68200c773799e28 (diff)
downloadtcl-a07adf4d6d28771d9aa74ef06526e5fb3035f5c1.zip
tcl-a07adf4d6d28771d9aa74ef06526e5fb3035f5c1.tar.gz
tcl-a07adf4d6d28771d9aa74ef06526e5fb3035f5c1.tar.bz2
Added a refcounting mechanism to ChannelBuffers. Other edits to
stop segfaults in tests iocmd-21.2[12].
Diffstat (limited to 'generic/tclIO.h')
-rw-r--r--generic/tclIO.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tclIO.h b/generic/tclIO.h
index ebf2ef7..0ea7d1c 100644
--- a/generic/tclIO.h
+++ b/generic/tclIO.h
@@ -36,6 +36,7 @@
*/
typedef struct ChannelBuffer {
+ int refCount; /* Current uses count */
int nextAdded; /* The next position into which a character
* will be put in the buffer. */
int nextRemoved; /* Position of next byte to be removed from