summaryrefslogtreecommitdiffstats
path: root/win/tclWinThrd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-20 06:49:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-20 06:49:25 (GMT)
commit9aa711e8e0c11bcdda23542d82c44a773e07251c (patch)
treef12dd6b08f1cd82f307af3dfe425de988643035f /win/tclWinThrd.c
parenta074f8f61ac516e2cb03222eb9f9a2dc82fb6c8a (diff)
downloadtcl-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.c8
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");
}