diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-12-21 10:13:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-12-21 10:13:37 (GMT) |
commit | 4a9549053c5065a1fd09b601851548e7418967c0 (patch) | |
tree | edbc91ee6b8cec5968ef78ebc501937c02d79a5d /win/tclWinThrd.c | |
parent | 7cd696d234348fee7d05b41112028901a9d7cdad (diff) | |
parent | 07bdaceb97e059a802ca158f1661c23e651ec949 (diff) | |
download | tcl-4a9549053c5065a1fd09b601851548e7418967c0.zip tcl-4a9549053c5065a1fd09b601851548e7418967c0.tar.gz tcl-4a9549053c5065a1fd09b601851548e7418967c0.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.c | 8 |
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"); } |