summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-02-25 18:17:26 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-02-25 18:17:26 (GMT)
commitfb7769e79e653dc55f230642f27a3762d050207b (patch)
tree1f21407e48e559afb20fde4343a3d1ceba744351 /generic/tclIO.h
parent3461d3129afc759c926e71f7a3f3334c2a2c3832 (diff)
parent665eff0bf84eefb902865adc4f6ce46862cc5710 (diff)
downloadtcl-fb7769e79e653dc55f230642f27a3762d050207b.zip
tcl-fb7769e79e653dc55f230642f27a3762d050207b.tar.gz
tcl-fb7769e79e653dc55f230642f27a3762d050207b.tar.bz2
Repair linked list management in Tcl_DeleteCloseHandler().
CloseCallback struct used only locally. Remove from tclIO.h.
Diffstat (limited to 'generic/tclIO.h')
-rw-r--r--generic/tclIO.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/generic/tclIO.h b/generic/tclIO.h
index 1e89878..58e7ae8 100644
--- a/generic/tclIO.h
+++ b/generic/tclIO.h
@@ -85,18 +85,8 @@ typedef struct ChannelBuffer {
#define CHANNELBUFFER_DEFAULT_SIZE (1024 * 4)
-/*
- * Structure to record a close callback. One such record exists for each close
- * callback registered for a channel.
- */
-
-typedef struct CloseCallback {
- Tcl_CloseProc *proc; /* The procedure to call. */
- ClientData clientData; /* Arbitrary one-word data to pass to the
- * callback. */
- struct CloseCallback *nextPtr;
- /* For chaining close callbacks. */
-} CloseCallback;
+/* Foward declaration */
+struct CloseCallback;
/*
* The following structure describes the information saved from a call to
@@ -195,7 +185,8 @@ typedef struct ChannelState {
* value is the POSIX error code. */
int refCount; /* How many interpreters hold references to
* this IO channel? */
- CloseCallback *closeCbPtr; /* Callbacks registered to be called when the
+ struct CloseCallback *closeCbPtr;
+ /* Callbacks registered to be called when the
* channel is closed. */
char *outputStage; /* Temporary staging buffer used when
* translating EOL before converting from