diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-08-20 06:49:25 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-08-20 06:49:25 (GMT) |
commit | 9aa711e8e0c11bcdda23542d82c44a773e07251c (patch) | |
tree | f12dd6b08f1cd82f307af3dfe425de988643035f /win/tclWinThrd.c | |
parent | a074f8f61ac516e2cb03222eb9f9a2dc82fb6c8a (diff) | |
download | tcl-9aa711e8e0c11bcdda23542d82c44a773e07251c.zip tcl-9aa711e8e0c11bcdda23542d82c44a773e07251c.tar.gz tcl-9aa711e8e0c11bcdda23542d82c44a773e07251c.tar.bz2 |
remove unnecessary struct names, which only pollute the "struct" namespace for te compiler.
Diffstat (limited to 'win/tclWinThrd.c')
-rw-r--r-- | win/tclWinThrd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tclWinThrd.c b/win/tclWinThrd.c index 102fd40..5d4a754 100644 --- a/win/tclWinThrd.c +++ b/win/tclWinThrd.c @@ -102,7 +102,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 */ @@ -117,7 +117,7 @@ typedef struct WinCondition { static int once; static DWORD tlsKey; -typedef struct allocMutex { +typedef struct { Tcl_Mutex tlock; CRITICAL_SECTION wlock; } allocMutex; @@ -873,9 +873,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"); } |