summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c33
1 files changed, 17 insertions, 16 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 4c08464..75beedd 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -384,7 +384,7 @@ FileEventProc(
static int
FileBlockProc(
- void *instanceData, /* Instance data for channel. */
+ void *instanceData, /* Instance data for channel. */
int mode) /* TCL_MODE_BLOCKING or
* TCL_MODE_NONBLOCKING. */
{
@@ -423,7 +423,7 @@ FileBlockProc(
static int
FileCloseProc(
- void *instanceData, /* Pointer to FileInfo structure. */
+ void *instanceData, /* Pointer to FileInfo structure. */
TCL_UNUSED(Tcl_Interp *),
int flags)
{
@@ -473,7 +473,7 @@ FileCloseProc(
* pointer on the thread local list.
*/
- FileThreadActionProc(fileInfoPtr,TCL_CHANNEL_THREAD_REMOVE);
+ FileThreadActionProc(fileInfoPtr, TCL_CHANNEL_THREAD_REMOVE);
break;
}
}
@@ -501,7 +501,7 @@ FileCloseProc(
static long long
FileWideSeekProc(
- void *instanceData, /* File state. */
+ void *instanceData, /* File state. */
long long offset, /* Offset to seek to. */
int mode, /* Relative to where should we seek? */
int *errorCodePtr) /* To store error code. */
@@ -553,7 +553,7 @@ FileWideSeekProc(
static int
FileTruncateProc(
- void *instanceData, /* File state. */
+ void *instanceData, /* File state. */
long long length) /* Length to truncate at. */
{
FileInfo *infoPtr = (FileInfo *)instanceData;
@@ -629,7 +629,7 @@ FileTruncateProc(
static int
FileInputProc(
- void *instanceData, /* File state. */
+ void *instanceData, /* File state. */
char *buf, /* Where to store data read. */
int bufSize, /* Num bytes available in buffer. */
int *errorCode) /* Where to store error code. */
@@ -684,7 +684,7 @@ FileInputProc(
static int
FileOutputProc(
- void *instanceData, /* File state. */
+ void *instanceData, /* File state. */
const char *buf, /* The data buffer. */
int toWrite, /* How many bytes to write? */
int *errorCode) /* Where to store error code. */
@@ -731,7 +731,7 @@ FileOutputProc(
static void
FileWatchProc(
- void *instanceData, /* File state. */
+ void *instanceData, /* File state. */
int mask) /* What events to watch for; OR-ed combination
* of TCL_READABLE, TCL_WRITABLE and
* TCL_EXCEPTION. */
@@ -770,9 +770,9 @@ FileWatchProc(
static int
FileGetHandleProc(
- void *instanceData, /* The file state. */
+ void *instanceData, /* The file state. */
int direction, /* TCL_READABLE or TCL_WRITABLE */
- void **handlePtr) /* Where to store the handle. */
+ void **handlePtr) /* Where to store the handle. */
{
FileInfo *infoPtr = (FileInfo *)instanceData;
@@ -891,7 +891,8 @@ StatOpenFile(
*/
TclNewObj(dictObj);
-#define STORE_ELEM(name, value) StoreElementInDict(dictObj, name, value)
+#define STORE_ELEM(name, value) \
+ StoreElementInDict(dictObj, name, value)
STORE_ELEM("dev", Tcl_NewWideIntObj((long) dev));
STORE_ELEM("ino", Tcl_NewWideIntObj((long long) inode));
@@ -920,7 +921,7 @@ StatOpenFile(
static int
FileGetOptionProc(
- void *instanceData, /* The file state. */
+ void *instanceData, /* The file state. */
Tcl_Interp *interp, /* For error reporting. */
const char *optionName, /* What option to read, or NULL for all. */
Tcl_DString *dsPtr) /* Where to write the value read. */
@@ -1218,7 +1219,7 @@ TclpOpenFileChannel(
Tcl_Channel
Tcl_MakeFileChannel(
- void *rawHandle, /* OS level handle */
+ void *rawHandle, /* OS level handle */
int mode) /* OR'ed combination of TCL_READABLE and
* TCL_WRITABLE to indicate file mode. */
{
@@ -1466,8 +1467,8 @@ TclpGetDefaultStdChannel(
* Set up the normal channel options for stdio handles.
*/
- if (Tcl_SetChannelOption(NULL,channel,"-translation","auto")!=TCL_OK ||
- Tcl_SetChannelOption(NULL,channel,"-buffering",bufMode)!=TCL_OK) {
+ if (Tcl_SetChannelOption(NULL, channel, "-translation", "auto")!=TCL_OK ||
+ Tcl_SetChannelOption(NULL, channel, "-buffering", bufMode)!=TCL_OK) {
Tcl_CloseEx(NULL, channel, 0);
return (Tcl_Channel) NULL;
}
@@ -1687,7 +1688,7 @@ FileGetType(
return type;
}
- /*
+/*
*----------------------------------------------------------------------
*
* NativeIsComPort --