summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclIO.c7
-rw-r--r--generic/tclIO.h9
-rw-r--r--generic/tclIOGT.c38
-rw-r--r--generic/tclIORChan.c46
-rw-r--r--generic/tclIORTrans.c36
-rw-r--r--generic/tclZipfs.c40
-rw-r--r--generic/tclZlib.c14
-rw-r--r--unix/tclUnixChan.c62
-rw-r--r--unix/tclUnixPipe.c30
-rw-r--r--unix/tclUnixSock.c32
-rw-r--r--win/tclWinChan.c32
-rw-r--r--win/tclWinConsole.c34
-rw-r--r--win/tclWinPipe.c30
-rw-r--r--win/tclWinSerial.c32
-rw-r--r--win/tclWinSock.c32
15 files changed, 237 insertions, 237 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 2000573..4859bc1 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -1599,7 +1599,7 @@ Tcl_Channel
Tcl_CreateChannel(
const Tcl_ChannelType *typePtr, /* The channel type record. */
const char *chanName, /* Name of channel to record. */
- void *instanceData, /* Instance specific data. */
+ void *instanceData, /* Instance specific data. */
int mask) /* TCL_READABLE & TCL_WRITABLE to indicate if
* the channel is readable, writable. */
{
@@ -1809,7 +1809,7 @@ Tcl_StackChannel(
const Tcl_ChannelType *typePtr,
/* The channel type record for the new
* channel. */
- void *instanceData, /* Instance specific data for the new
+ void *instanceData, /* Instance specific data for the new
* channel. */
int mask, /* TCL_READABLE & TCL_WRITABLE to indicate if
* the channel is readable, writable. */
@@ -10762,7 +10762,8 @@ Tcl_IsChannelExisting(
const char *
Tcl_ChannelName(
- const Tcl_ChannelType *chanTypePtr) /* Pointer to channel type. */
+ const Tcl_ChannelType *chanTypePtr)
+ /* Pointer to channel type. */
{
return chanTypePtr->typeName;
}
diff --git a/generic/tclIO.h b/generic/tclIO.h
index d1f4a0a..711863b 100644
--- a/generic/tclIO.h
+++ b/generic/tclIO.h
@@ -96,7 +96,7 @@ typedef struct EventScriptRecord {
typedef struct Channel {
struct ChannelState *state; /* Split out state information */
- void *instanceData; /* Instance-specific data provided by creator
+ void *instanceData; /* Instance-specific data provided by creator
* of channel. */
const Tcl_ChannelType *typePtr; /* Pointer to channel type structure. */
struct Channel *downChanPtr;/* Refers to channel this one was stacked
@@ -160,7 +160,8 @@ typedef struct ChannelState {
* input. */
#if TCL_MAJOR_VERSION < 9
int outEofChar; /* If nonzero, append this to the channel when
- * it is closed if it is open for writing. For Tcl 8.x only */
+ * it is closed if it is open for writing.
+ * For Tcl 8.x only */
#endif
int unreportedError; /* Non-zero if an error report was deferred
* because it happened in the background. The
@@ -214,8 +215,8 @@ typedef struct ChannelState {
* precedence over a Posix error code returned by a channel operation.
*/
- Tcl_Obj* chanMsg;
- Tcl_Obj* unreportedMsg; /* Non-NULL if an error report was deferred
+ Tcl_Obj *chanMsg;
+ Tcl_Obj *unreportedMsg; /* Non-NULL if an error report was deferred
* because it happened in the background. The
* value is the chanMg, if any. #219's
* companion to 'unreportedError'. */
diff --git a/generic/tclIOGT.c b/generic/tclIOGT.c
index aa63cd0..a1ba9f9 100644
--- a/generic/tclIOGT.c
+++ b/generic/tclIOGT.c
@@ -115,23 +115,23 @@ static inline void ResultAdd(ResultBuffer *r, unsigned char *buf,
*/
static const Tcl_ChannelType transformChannelType = {
- "transform", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Close proc. */
- TransformInputProc, /* Input proc. */
- TransformOutputProc, /* Output proc. */
- NULL, /* Seek proc. */
- TransformSetOptionProc, /* Set option proc. */
- TransformGetOptionProc, /* Get option proc. */
- TransformWatchProc, /* Initialize notifier. */
- TransformGetFileHandleProc, /* Get OS handles out of channel. */
- TransformCloseProc, /* close2proc */
- TransformBlockModeProc, /* Set blocking/nonblocking mode.*/
+ "transform",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ TransformInputProc,
+ TransformOutputProc,
+ NULL, /* Deprecated. */
+ TransformSetOptionProc,
+ TransformGetOptionProc,
+ TransformWatchProc,
+ TransformGetFileHandleProc,
+ TransformCloseProc,
+ TransformBlockModeProc,
NULL, /* Flush proc. */
- TransformNotifyProc, /* Handling of events bubbling up. */
- TransformWideSeekProc, /* Wide seek proc. */
- NULL, /* Thread action. */
- NULL /* Truncate. */
+ TransformNotifyProc,
+ TransformWideSeekProc,
+ NULL, /* Thread action proc. */
+ NULL /* Truncate proc. */
};
/*
@@ -850,14 +850,14 @@ TransformOutputProc(
static long long
TransformWideSeekProc(
- void *instanceData, /* The channel to manipulate. */
+ void *instanceData, /* The channel to manipulate. */
long long offset, /* Size of movement. */
int mode, /* How to move. */
int *errorCodePtr) /* Location of error flag. */
{
TransformChannelData *dataPtr = (TransformChannelData *)instanceData;
Tcl_Channel parent = Tcl_GetStackedChannel(dataPtr->self);
- const Tcl_ChannelType *parentType = Tcl_GetChannelType(parent);
+ const Tcl_ChannelType *parentType = Tcl_GetChannelType(parent);
Tcl_DriverWideSeekProc *parentWideSeekProc =
Tcl_ChannelWideSeekProc(parentType);
void *parentData = Tcl_GetChannelInstanceData(parent);
@@ -905,7 +905,7 @@ TransformWideSeekProc(
*errorCodePtr = EINVAL;
return -1;
}
- return parentWideSeekProc(parentData, offset, mode, errorCodePtr);
+ return parentWideSeekProc(parentData, offset, mode, errorCodePtr);
}
/*
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index e8a243b..c8449aa 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -59,28 +59,28 @@ static int ReflectTruncate(void *clientData,
* The C layer channel type/driver definition used by the reflection.
*/
-static const Tcl_ChannelType tclRChannelType = {
- "tclrchannel", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Old close API */
- ReflectInput, /* Handle read request */
- ReflectOutput, /* Handle write request */
- NULL,
- ReflectSetOption, /* Set options. */
- ReflectGetOption, /* Get options. */
- ReflectWatch, /* Initialize notifier */
- NULL, /* Get OS handle from the channel. */
- ReflectClose, /* Close channel. Clean instance data */
- ReflectBlock, /* Set blocking/nonblocking. */
- NULL, /* Flush channel. */
- NULL, /* Handle events. */
- ReflectSeekWide, /* Move access point (64 bit). */
+static const Tcl_ChannelType reflectedChannelType = {
+ "tclrchannel",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated */
+ ReflectInput,
+ ReflectOutput,
+ NULL, /* Deprecated */
+ ReflectSetOption,
+ ReflectGetOption,
+ ReflectWatch,
+ NULL, /* Get OS handle from the channel. */
+ ReflectClose,
+ ReflectBlock,
+ NULL, /* Flush channel. */
+ NULL, /* Handle bubbled events. */
+ ReflectSeekWide,
#if TCL_THREADS
- ReflectThread, /* thread action, tracking owner */
+ ReflectThread,
#else
- NULL, /* thread action */
+ NULL, /* Thread action proc */
#endif
- ReflectTruncate /* Truncate. */
+ ReflectTruncate /* Truncate proc. */
};
/*
@@ -667,7 +667,7 @@ TclChanCreateObjCmd(
* Everything is fine now.
*/
- chan = Tcl_CreateChannel(&tclRChannelType, TclGetString(rcId), rcPtr,
+ chan = Tcl_CreateChannel(&reflectedChannelType, TclGetString(rcId), rcPtr,
mode);
rcPtr->chan = chan;
TclChannelPreserve(chan);
@@ -682,7 +682,7 @@ TclChanCreateObjCmd(
Tcl_ChannelType *clonePtr = (Tcl_ChannelType *)Tcl_Alloc(sizeof(Tcl_ChannelType));
- memcpy(clonePtr, &tclRChannelType, sizeof(Tcl_ChannelType));
+ memcpy(clonePtr, &reflectedChannelType, sizeof(Tcl_ChannelType));
if (!(methods & FLAG(METH_CONFIGURE))) {
clonePtr->setOptionProc = NULL;
@@ -1179,7 +1179,7 @@ ReflectClose(
#endif
tctPtr = ((Channel *)rcPtr->chan)->typePtr;
- if (tctPtr && tctPtr != &tclRChannelType) {
+ if (tctPtr && tctPtr != &reflectedChannelType) {
Tcl_Free((void *)tctPtr);
((Channel *)rcPtr->chan)->typePtr = NULL;
}
@@ -1248,7 +1248,7 @@ ReflectClose(
}
#endif
tctPtr = ((Channel *)rcPtr->chan)->typePtr;
- if (tctPtr && tctPtr != &tclRChannelType) {
+ if (tctPtr && tctPtr != &reflectedChannelType) {
Tcl_Free((void *)tctPtr);
((Channel *)rcPtr->chan)->typePtr = NULL;
}
diff --git a/generic/tclIORTrans.c b/generic/tclIORTrans.c
index 0fe9d97..c151448 100644
--- a/generic/tclIORTrans.c
+++ b/generic/tclIORTrans.c
@@ -55,24 +55,24 @@ static int ReflectNotify(void *clientData, int mask);
* The C layer channel type/driver definition used by the reflection.
*/
-static const Tcl_ChannelType tclRTransformType = {
- "tclrtransform", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel. */
- NULL,
- ReflectInput, /* Handle read request. */
- ReflectOutput, /* Handle write request. */
- NULL, /* Move location of access point. */
- ReflectSetOption, /* Set options. */
- ReflectGetOption, /* Get options. */
- ReflectWatch, /* Initialize notifier. */
- ReflectHandle, /* Get OS handle from the channel. */
- ReflectClose, /* Close channel, clean instance data. */
- ReflectBlock, /* Set blocking/nonblocking. */
+static const Tcl_ChannelType reflectedTransformType = {
+ "tclrtransform",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ ReflectInput,
+ ReflectOutput,
+ NULL, /* Deprecated. */
+ ReflectSetOption,
+ ReflectGetOption,
+ ReflectWatch,
+ ReflectHandle,
+ ReflectClose,
+ ReflectBlock,
NULL, /* Flush channel. Not used by core. */
- ReflectNotify, /* Handle events. */
- ReflectSeekWide, /* Move access point (64 bit). */
- NULL, /* thread action */
- NULL /* truncate */
+ ReflectNotify,
+ ReflectSeekWide,
+ NULL, /* Thread action proc. */
+ NULL /* Truncate proc. */
};
/*
@@ -678,7 +678,7 @@ TclChanPushObjCmd(
rtPtr->methods = methods;
rtPtr->mode = mode;
- rtPtr->chan = Tcl_StackChannel(interp, &tclRTransformType, rtPtr, mode,
+ rtPtr->chan = Tcl_StackChannel(interp, &reflectedTransformType, rtPtr, mode,
rtPtr->parent);
/*
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index 4fef38c..683e4ff 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -433,28 +433,26 @@ static const Tcl_Filesystem zipfsFilesystem = {
/*
* The channel type/driver definition used for ZIP archive members.
*/
-
-static Tcl_ChannelType ZipChannelType = {
- "zip", /* Type name. */
+static const Tcl_ChannelType zipChannelType = {
+ "zip",
TCL_CHANNEL_VERSION_5,
- NULL, /* Close channel, clean instance data */
- ZipChannelRead, /* Handle read request */
- ZipChannelWrite, /* Handle write request */
- NULL, /* Move location of access point, NULL'able */
- NULL, /* Set options, NULL'able */
- NULL, /* Get options, NULL'able */
- ZipChannelWatchChannel, /* Initialize notifier */
- ZipChannelGetFile, /* Get OS handle from the channel */
- ZipChannelClose, /* 2nd version of close channel, NULL'able */
- NULL, /* Set blocking mode for raw channel,
- * NULL'able */
- NULL, /* Function to flush channel, NULL'able */
- NULL, /* Function to handle event, NULL'able */
- ZipChannelWideSeek, /* Wide seek function, NULL'able */
- NULL, /* Thread action function, NULL'able */
- NULL, /* Truncate function, NULL'able */
+ NULL, /* Deprecated. */
+ ZipChannelRead,
+ ZipChannelWrite,
+ NULL, /* Deprecated. */
+ NULL, /* Set options proc. */
+ NULL, /* Get options proc. */
+ ZipChannelWatchChannel,
+ ZipChannelGetFile,
+ ZipChannelClose,
+ NULL, /* Set blocking mode for raw channel. */
+ NULL, /* Function to flush channel. */
+ NULL, /* Function to handle bubbled events. */
+ ZipChannelWideSeek,
+ NULL, /* Thread action function. */
+ NULL, /* Truncate function. */
};
-
+
/*
*------------------------------------------------------------------------
*
@@ -4903,7 +4901,7 @@ ZipChannelOpen(
ZipFS.idCount++);
z->zipFilePtr->numOpen++;
Unlock();
- return Tcl_CreateChannel(&ZipChannelType, cname, info, flags);
+ return Tcl_CreateChannel(&zipChannelType, cname, info, flags);
error:
Unlock();
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index f3a2623..a1f4f12 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -208,21 +208,21 @@ static void ZlibTransformTimerRun(void *clientData);
static const Tcl_ChannelType zlibChannelType = {
"zlib",
TCL_CHANNEL_VERSION_5,
- NULL,
+ NULL, /* Deprecated. */
ZlibTransformInput,
ZlibTransformOutput,
- NULL, /* seekProc */
+ NULL, /* Deprecated. */
ZlibTransformSetOption,
ZlibTransformGetOption,
ZlibTransformWatch,
ZlibTransformGetHandle,
- ZlibTransformClose, /* close2Proc */
+ ZlibTransformClose,
ZlibTransformBlockMode,
- NULL, /* flushProc */
+ NULL, /* Flush proc. */
ZlibTransformEventHandler,
- NULL, /* wideSeekProc */
- NULL,
- NULL
+ NULL, /* Seek proc. */
+ NULL, /* Thread action proc. */
+ NULL /* Truncate proc. */
};
/*
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 12366ac..693720c 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -161,22 +161,22 @@ static int TtySetOptionProc(void *instanceData,
static const Tcl_ChannelType fileChannelType = {
"file", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Deprecated close proc. */
- FileInputProc, /* Input proc. */
- FileOutputProc, /* Output proc. */
- NULL,
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ FileInputProc,
+ FileOutputProc,
+ NULL, /* Deprecated. */
NULL, /* Set option proc. */
- FileGetOptionProc, /* Get option proc. */
- FileWatchProc, /* Initialize notifier. */
- FileGetHandleProc, /* Get OS handles out of channel. */
- FileCloseProc, /* Close proc. */
- FileBlockModeProc, /* Set blocking or non-blocking mode.*/
- NULL, /* flush proc. */
- NULL, /* handler proc. */
- FileWideSeekProc, /* wide seek proc. */
- NULL,
- FileTruncateProc /* truncate proc. */
+ FileGetOptionProc,
+ FileWatchProc,
+ FileGetHandleProc,
+ FileCloseProc,
+ FileBlockModeProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
+ FileWideSeekProc,
+ NULL, /* Thread action proc. */
+ FileTruncateProc
};
#ifdef SUPPORTS_TTY
@@ -186,23 +186,23 @@ static const Tcl_ChannelType fileChannelType = {
*/
static const Tcl_ChannelType ttyChannelType = {
- "tty", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Deprecated close proc. */
- FileInputProc, /* Input proc. */
- FileOutputProc, /* Output proc. */
+ "tty",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ FileInputProc,
+ FileOutputProc,
+ NULL, /* Deprecated. */
+ TtySetOptionProc,
+ TtyGetOptionProc,
+ FileWatchProc,
+ FileGetHandleProc,
+ TtyCloseProc,
+ FileBlockModeProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
NULL, /* Seek proc. */
- TtySetOptionProc, /* Set option proc. */
- TtyGetOptionProc, /* Get option proc. */
- FileWatchProc, /* Initialize notifier. */
- FileGetHandleProc, /* Get OS handles out of channel. */
- TtyCloseProc, /* Close proc. */
- FileBlockModeProc, /* Set blocking or non-blocking mode.*/
- NULL, /* flush proc. */
- NULL, /* handler proc. */
- NULL, /* wide seek proc. */
- NULL, /* thread action proc. */
- NULL /* truncate proc. */
+ NULL, /* Thread action proc. */
+ NULL /* Truncate proc. */
};
#endif /* SUPPORTS_TTY */
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c
index ea1636e..78bba4f 100644
--- a/unix/tclUnixPipe.c
+++ b/unix/tclUnixPipe.c
@@ -78,23 +78,23 @@ static int SetupStdFile(TclFile file, int type);
*/
static const Tcl_ChannelType pipeChannelType = {
- "pipe", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Close proc. */
- PipeInputProc, /* Input proc. */
- PipeOutputProc, /* Output proc. */
- NULL, /* Seek proc. */
+ "pipe",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ PipeInputProc,
+ PipeOutputProc,
+ NULL, /* Deprecated. */
NULL, /* Set option proc. */
NULL, /* Get option proc. */
- PipeWatchProc, /* Initialize notifier. */
- PipeGetHandleProc, /* Get OS handles out of channel. */
- PipeClose2Proc, /* close2proc. */
- PipeBlockModeProc, /* Set blocking or non-blocking mode.*/
- NULL, /* flush proc. */
- NULL, /* handler proc. */
- NULL, /* wide seek proc */
- NULL, /* thread action proc */
- NULL /* truncation */
+ PipeWatchProc,
+ PipeGetHandleProc,
+ PipeClose2Proc,
+ PipeBlockModeProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
+ NULL, /* Seek proc. */
+ NULL, /* Thread action proc. */
+ NULL /* Truncation proc. */
};
/*
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index 11193b7..d518453 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -154,23 +154,23 @@ static Tcl_FileProc WrapNotify;
*/
static const Tcl_ChannelType tcpChannelType = {
- "tcp", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Close proc. */
- TcpInputProc, /* Input proc. */
- TcpOutputProc, /* Output proc. */
+ "tcp",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ TcpInputProc,
+ TcpOutputProc,
+ NULL, /* Deprecated. */
+ TcpSetOptionProc,
+ TcpGetOptionProc,
+ TcpWatchProc,
+ TcpGetHandleProc,
+ TcpClose2Proc,
+ TcpBlockModeProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
NULL, /* Seek proc. */
- TcpSetOptionProc, /* Set option proc. */
- TcpGetOptionProc, /* Get option proc. */
- TcpWatchProc, /* Initialize notifier. */
- TcpGetHandleProc, /* Get OS handles out of channel. */
- TcpClose2Proc, /* Close2 proc. */
- TcpBlockModeProc, /* Set blocking or non-blocking mode.*/
- NULL, /* flush proc. */
- NULL, /* handler proc. */
- NULL, /* wide seek proc. */
- TcpThreadActionProc, /* thread action proc. */
- NULL /* truncate proc. */
+ TcpThreadActionProc,
+ NULL /* Truncate proc. */
};
/*
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 248ca5b..b81af7e 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -106,23 +106,23 @@ static Tcl_Channel OpenFileChannel(HANDLE handle, char *channelName,
*/
static const Tcl_ChannelType fileChannelType = {
- "file", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Close proc. */
- FileInputProc, /* Input proc. */
- FileOutputProc, /* Output proc. */
- NULL,
+ "file",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ FileInputProc,
+ FileOutputProc,
+ NULL, /* Deprecated. */
NULL, /* Set option proc. */
- FileGetOptionProc, /* Get option proc. */
- FileWatchProc, /* Set up the notifier to watch the channel. */
- FileGetHandleProc, /* Get an OS handle from channel. */
- FileCloseProc, /* close2proc. */
- FileBlockProc, /* Set blocking or non-blocking mode.*/
- NULL, /* flush proc. */
- NULL, /* handler proc. */
- FileWideSeekProc, /* Wide seek proc. */
- FileThreadActionProc, /* Thread action proc. */
- FileTruncateProc /* Truncate proc. */
+ FileGetOptionProc,
+ FileWatchProc,
+ FileGetHandleProc,
+ FileCloseProc,
+ FileBlockProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
+ FileWideSeekProc,
+ FileThreadActionProc,
+ FileTruncateProc
};
/*
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index a498200..ee04b05 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.c
@@ -298,23 +298,23 @@ static ConsoleChannelInfo *gWatchingChannelList;
*/
static const Tcl_ChannelType consoleChannelType = {
- "console", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Close proc. */
- ConsoleInputProc, /* Input proc. */
- ConsoleOutputProc, /* Output proc. */
- NULL, /* Seek proc. */
- ConsoleSetOptionProc, /* Set option proc. */
- ConsoleGetOptionProc, /* Get option proc. */
- ConsoleWatchProc, /* Set up notifier to watch the channel. */
- ConsoleGetHandleProc, /* Get an OS handle from channel. */
- ConsoleCloseProc, /* close2proc. */
- ConsoleBlockModeProc, /* Set blocking or non-blocking mode. */
- NULL, /* Flush proc. */
- NULL, /* Handler proc. */
- NULL, /* Wide seek proc. */
- ConsoleThreadActionProc, /* Thread action proc. */
- NULL /* Truncation proc. */
+ "console",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ ConsoleInputProc,
+ ConsoleOutputProc,
+ NULL, /* Deprecated. */
+ ConsoleSetOptionProc,
+ ConsoleGetOptionProc,
+ ConsoleWatchProc,
+ ConsoleGetHandleProc,
+ ConsoleCloseProc,
+ ConsoleBlockModeProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
+ NULL, /* Seek proc. */
+ ConsoleThreadActionProc,
+ NULL /* Truncation proc. */
};
/*
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index c4b60b9..eeb06f8 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -201,23 +201,23 @@ static void PipeThreadActionProc(void *instanceData,
*/
static const Tcl_ChannelType pipeChannelType = {
- "pipe", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Close proc. */
- PipeInputProc, /* Input proc. */
- PipeOutputProc, /* Output proc. */
- NULL, /* Seek proc. */
+ "pipe",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ PipeInputProc,
+ PipeOutputProc,
+ NULL, /* Deprecated. */
NULL, /* Set option proc. */
NULL, /* Get option proc. */
- PipeWatchProc, /* Set up notifier to watch the channel. */
- PipeGetHandleProc, /* Get an OS handle from channel. */
- PipeClose2Proc, /* close2proc */
- PipeBlockModeProc, /* Set blocking or non-blocking mode.*/
- NULL, /* flush proc. */
- NULL, /* handler proc. */
- NULL, /* wide seek proc */
- PipeThreadActionProc, /* thread action proc */
- NULL /* truncate */
+ PipeWatchProc,
+ PipeGetHandleProc,
+ PipeClose2Proc,
+ PipeBlockModeProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
+ NULL, /* Seek proc. */
+ PipeThreadActionProc,
+ NULL /* Truncate proc. */
};
/*
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c
index 2ce432c..fe35c36 100644
--- a/win/tclWinSerial.c
+++ b/win/tclWinSerial.c
@@ -202,23 +202,23 @@ static int SerialBlockingWrite(SerialInfo *infoPtr, LPVOID buf,
*/
static const Tcl_ChannelType serialChannelType = {
- "serial", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Close proc. */
- SerialInputProc, /* Input proc. */
- SerialOutputProc, /* Output proc. */
+ "serial",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ SerialInputProc,
+ SerialOutputProc,
+ NULL, /* Deprecated. */
+ SerialSetOptionProc,
+ SerialGetOptionProc,
+ SerialWatchProc,
+ SerialGetHandleProc,
+ SerialCloseProc,
+ SerialBlockProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
NULL, /* Seek proc. */
- SerialSetOptionProc, /* Set option proc. */
- SerialGetOptionProc, /* Get option proc. */
- SerialWatchProc, /* Set up notifier to watch the channel. */
- SerialGetHandleProc, /* Get an OS handle from channel. */
- SerialCloseProc, /* close2proc. */
- SerialBlockProc, /* Set blocking or non-blocking mode.*/
- NULL, /* flush proc. */
- NULL, /* handler proc. */
- NULL, /* wide seek proc */
- SerialThreadActionProc, /* thread action proc */
- NULL /* truncate */
+ SerialThreadActionProc,
+ NULL /* Truncate proc. */
};
/*
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index 5239cd3..11c43f0 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.c
@@ -270,23 +270,23 @@ static Tcl_DriverGetHandleProc TcpGetHandleProc;
*/
static const Tcl_ChannelType tcpChannelType = {
- "tcp", /* Type name. */
- TCL_CHANNEL_VERSION_5, /* v5 channel */
- NULL, /* Old close proc. Deprecated. */
- TcpInputProc, /* Input proc. */
- TcpOutputProc, /* Output proc. */
+ "tcp",
+ TCL_CHANNEL_VERSION_5,
+ NULL, /* Deprecated. */
+ TcpInputProc,
+ TcpOutputProc,
+ NULL, /* Deprecated. */
+ TcpSetOptionProc,
+ TcpGetOptionProc,
+ TcpWatchProc,
+ TcpGetHandleProc,
+ TcpClose2Proc,
+ TcpBlockModeProc,
+ NULL, /* Flush proc. */
+ NULL, /* Bubbled event handler proc. */
NULL, /* Seek proc. */
- TcpSetOptionProc, /* Set option proc. */
- TcpGetOptionProc, /* Get option proc. */
- TcpWatchProc, /* Initialize notifier. */
- TcpGetHandleProc, /* Get OS handles out of channel. */
- TcpClose2Proc, /* New close2 proc. */
- TcpBlockModeProc, /* Set blocking or non-blocking mode.*/
- NULL, /* flush proc. */
- NULL, /* handler proc. */
- NULL, /* wide seek proc. */
- TcpThreadActionProc, /* thread action proc. */
- NULL /* truncate proc. */
+ TcpThreadActionProc,
+ NULL /* Truncate proc. */
};
/*