summaryrefslogtreecommitdiffstats
path: root/win/tclWinThrd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-12-21 10:13:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-12-21 10:13:37 (GMT)
commit2951fec86bc93ecddf4fd9cdb697df49992879cc (patch)
treeedbc91ee6b8cec5968ef78ebc501937c02d79a5d /win/tclWinThrd.c
parentd07793f49c40187467711bf8dc929228d7b1c940 (diff)
parent13bc69a8a43c72889340638705bd432fae89352f (diff)
downloadtcl-2951fec86bc93ecddf4fd9cdb697df49992879cc.zip
tcl-2951fec86bc93ecddf4fd9cdb697df49992879cc.tar.gz
tcl-2951fec86bc93ecddf4fd9cdb697df49992879cc.tar.bz2
remove unnecessary struct names, which only pollute the "struct" namespace for the compiler.
Diffstat (limited to 'win/tclWinThrd.c')
-rw-r--r--win/tclWinThrd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c
index 7b0f6f8..b37eddf 100644
--- a/win/tclWinThrd.c
+++ b/win/tclWinThrd.c
@@ -111,7 +111,7 @@ static Tcl_ThreadDataKey dataKey;
* the queue.
*/
-typedef struct WinCondition {
+typedef struct {
CRITICAL_SECTION condLock; /* Lock to serialize queuing on the
* condition. */
struct ThreadSpecificData *firstPtr; /* Queue pointers */
@@ -126,7 +126,7 @@ typedef struct WinCondition {
static int once;
static DWORD tlsKey;
-typedef struct allocMutex {
+typedef struct {
Tcl_Mutex tlock;
CRITICAL_SECTION wlock;
} allocMutex;
@@ -948,9 +948,9 @@ TclpFinalizeCondition(
Tcl_Mutex *
TclpNewAllocMutex(void)
{
- struct allocMutex *lockPtr;
+ allocMutex *lockPtr;
- lockPtr = malloc(sizeof(struct allocMutex));
+ lockPtr = malloc(sizeof(allocMutex));
if (lockPtr == NULL) {
Tcl_Panic("could not allocate lock");
}