summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2024-05-10 15:40:16 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2024-05-10 15:40:16 (GMT)
commiteb01254c1ce44dacfa70f813b2f0219c44b0626a (patch)
tree82f1385b486b9ed371ed19b443eaa9ec42fc06db /win
parent7652f3b7974f7a2bf4ed0b8ebfc51ad203c6ccfa (diff)
downloadtcl-eb01254c1ce44dacfa70f813b2f0219c44b0626a.zip
tcl-eb01254c1ce44dacfa70f813b2f0219c44b0626a.tar.gz
tcl-eb01254c1ce44dacfa70f813b2f0219c44b0626a.tar.bz2
More whitespace cleanup
Diffstat (limited to 'win')
-rw-r--r--win/tclWinChan.c5
-rw-r--r--win/tclWinConsole.c5
-rw-r--r--win/tclWinFCmd.c1
-rw-r--r--win/tclWinInt.h4
-rw-r--r--win/tclWinPipe.c1
-rw-r--r--win/tclWinPort.h3
-rw-r--r--win/tclWinSerial.c2
-rw-r--r--win/tclWinThrd.c24
-rw-r--r--win/tclWinTime.c1
9 files changed, 15 insertions, 31 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 8715b4d..4c08464 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -108,10 +108,10 @@ 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. */
+ NULL, /* Close proc. */
FileInputProc, /* Input proc. */
FileOutputProc, /* Output proc. */
- NULL,
+ NULL,
NULL, /* Set option proc. */
FileGetOptionProc, /* Get option proc. */
FileWatchProc, /* Set up the notifier to watch the channel. */
@@ -140,7 +140,6 @@ static const Tcl_ChannelType fileChannelType = {
#define POSIX_EPOCH_AS_FILETIME \
((long long) 116444736 * (long long) 1000000000)
-
/*
*----------------------------------------------------------------------
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index b7288b7..8b289b1 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.c
@@ -280,7 +280,6 @@ static Tcl_ThreadDataKey dataKey;
*/
SRWLOCK gConsoleLock;
-
/* Process-wide list of console handles. Access control through gConsoleLock */
static ConsoleHandleInfo *gConsoleHandleInfoList;
@@ -905,7 +904,7 @@ ConsoleCheckProc(
/* See note above loop why this can be accessed without locks */
chanInfoPtr->flags |= CONSOLE_EVENT_QUEUED;
chanInfoPtr->numRefs += 1; /* So it does not go away while event
- is in queue */
+ * is in queue */
evPtr->header.proc = ConsoleEventProc;
evPtr->chanInfoPtr = chanInfoPtr;
Tcl_QueueEvent((Tcl_Event *) evPtr, TCL_QUEUE_TAIL);
@@ -973,7 +972,7 @@ ConsoleBlockModeProc(
static int
ConsoleCloseProc(
- void *instanceData, /* Pointer to ConsoleChannelInfo structure. */
+ void *instanceData, /* Pointer to ConsoleChannelInfo structure. */
TCL_UNUSED(Tcl_Interp *),
int flags)
{
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c
index e7164df..0af484d 100644
--- a/win/tclWinFCmd.c
+++ b/win/tclWinFCmd.c
@@ -53,7 +53,6 @@ enum {
static const int attributeArray[] = {FILE_ATTRIBUTE_ARCHIVE, FILE_ATTRIBUTE_HIDDEN,
0, FILE_ATTRIBUTE_READONLY, 0, FILE_ATTRIBUTE_SYSTEM};
-
const char *const tclpFileAttrStrings[] = {
"-archive", "-hidden", "-longname", "-readonly",
"-shortname", "-system", NULL
diff --git a/win/tclWinInt.h b/win/tclWinInt.h
index 6de1432..9995602 100644
--- a/win/tclWinInt.h
+++ b/win/tclWinInt.h
@@ -75,11 +75,10 @@ typedef struct TclPipeThreadInfo {
* to do read/write operation. Additionally
* used as signal to stop (state set to -1) */
volatile LONG state; /* Indicates current state of the thread */
- void *clientData; /* Referenced data of the main thread */
+ void *clientData; /* Referenced data of the main thread */
HANDLE evWakeUp; /* Optional wake-up event worker set by shutdown */
} TclPipeThreadInfo;
-
/* If pipe-workers will use some tcl subsystem, we can use Tcl_Alloc without
* more overhead for finalize thread (should be executed anyway)
*
@@ -99,7 +98,6 @@ typedef struct TclPipeThreadInfo {
#define PTI_STATE_END 4 /* thread should stop work (worker is busy) */
#define PTI_STATE_DOWN 8 /* worker is down */
-
MODULE_SCOPE
TclPipeThreadInfo * TclPipeThreadCreateTI(TclPipeThreadInfo **pipeTIPtr,
void *clientData, HANDLE wakeEvent);
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c
index 3f0269c..dbf3324 100644
--- a/win/tclWinPipe.c
+++ b/win/tclWinPipe.c
@@ -1187,7 +1187,6 @@ TclpCreateProcess(
}
return result;
}
-
/*
*----------------------------------------------------------------------
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index efd9ff2..8ab4548 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -246,7 +246,6 @@ typedef DWORD_PTR * PDWORD_PTR;
# define EWOULDBLOCK 140 /* Operation would block */
#endif
-
/* Visual Studio doesn't have these, so just choose some high numbers */
#ifndef ESOCKTNOSUPPORT
# define ESOCKTNOSUPPORT 240 /* Socket type not supported */
@@ -415,7 +414,6 @@ typedef DWORD_PTR * PDWORD_PTR;
# endif
#endif /* !S_ISLNK */
-
/*
* Define MAXPATHLEN in terms of MAXPATH if available
*/
@@ -524,7 +522,6 @@ typedef DWORD_PTR * PDWORD_PTR;
/* This type is not defined in the Windows headers */
#define socklen_t int
-
/*
* The following macros have trivial definitions, allowing generic code to
* address platform-specific issues.
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c
index d8193b4..e27937e 100644
--- a/win/tclWinSerial.c
+++ b/win/tclWinSerial.c
@@ -613,7 +613,6 @@ SerialCloseProc(
return EINVAL;
}
-
if (serialPtr->validMask & TCL_READABLE) {
PurgeComm(serialPtr->handle, PURGE_RXABORT | PURGE_RXCLEAR);
CloseHandle(serialPtr->osRead.hEvent);
@@ -1480,7 +1479,6 @@ TclWinOpenSerialChannel(
infoPtr->channel = Tcl_CreateChannel(&serialChannelType, channelName,
infoPtr, permissions);
-
SetupComm(handle, infoPtr->sysBufRead, infoPtr->sysBufWrite);
PurgeComm(handle,
PURGE_TXABORT | PURGE_RXABORT | PURGE_TXCLEAR | PURGE_RXCLEAR);
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index d99de8c..d5c582b 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -79,10 +79,10 @@ static CRITICAL_SECTION joinLock;
#if TCL_THREADS
typedef struct ThreadSpecificData {
- HANDLE condEvent; /* Per-thread condition event */
+ HANDLE condEvent; /* Per-thread condition event */
struct ThreadSpecificData *nextPtr; /* Queue pointers */
struct ThreadSpecificData *prevPtr;
- int flags; /* See flags below */
+ int flags; /* See flags below */
} ThreadSpecificData;
static Tcl_ThreadDataKey dataKey;
@@ -120,7 +120,7 @@ typedef struct {
static DWORD tlsKey;
typedef struct {
- Tcl_Mutex tlock;
+ Tcl_Mutex tlock;
CRITICAL_SECTION wlock;
} allocMutex;
#endif /* USE_THREAD_ALLOC */
@@ -131,12 +131,12 @@ typedef struct {
*/
typedef struct {
- LPTHREAD_START_ROUTINE lpStartAddress; /* Original startup routine */
- LPVOID lpParameter; /* Original startup data */
- unsigned int fpControl; /* Floating point control word from the
+ LPTHREAD_START_ROUTINE lpStartAddress;
+ /* Original startup routine */
+ LPVOID lpParameter; /* Original startup data */
+ unsigned int fpControl; /* Floating point control word from the
* main thread */
} WinThread;
-
/*
*----------------------------------------------------------------------
@@ -567,9 +567,9 @@ Tcl_MutexLock(
*/
if (*mutexPtr == NULL) {
- csPtr = (CRITICAL_SECTION *)Tcl_Alloc(sizeof(CRITICAL_SECTION));
+ csPtr = (CRITICAL_SECTION *) Tcl_Alloc(sizeof(CRITICAL_SECTION));
InitializeCriticalSection(csPtr);
- *mutexPtr = (Tcl_Mutex)csPtr;
+ *mutexPtr = (Tcl_Mutex) csPtr;
TclRememberMutex(mutexPtr);
}
TclpGlobalUnlock();
@@ -659,7 +659,7 @@ void
Tcl_ConditionWait(
Tcl_Condition *condPtr, /* Really (WinCondition **) */
Tcl_Mutex *mutexPtr, /* Really (CRITICAL_SECTION **) */
- const Tcl_Time *timePtr) /* Timeout on waiting period */
+ const Tcl_Time *timePtr) /* Timeout on waiting period */
{
WinCondition *winCondPtr; /* Per-condition queue head */
CRITICAL_SECTION *csPtr; /* Caller's Mutex, after casting */
@@ -926,9 +926,6 @@ TclpFinalizeCondition(
}
}
-
-
-
/*
* Additions by AOL for specialized thread memory allocator.
*/
@@ -1030,7 +1027,6 @@ TclpFreeAllocCache(
}
#endif /* USE_THREAD_ALLOC */
-
void *
TclpThreadCreateKey(void)
{
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 77f7547..5636dc0 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -103,7 +103,6 @@ static struct {
double microsecsScale; /* Denominator scale between clock / microsecs */
} wideClick = {0, 0, 0.0};
-
/*
* Declarations for functions defined later in this file.
*/