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 /unix/tclUnixThrd.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 'unix/tclUnixThrd.c')
-rw-r--r-- | unix/tclUnixThrd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c index 789dbb6..9a1efbe 100644 --- a/unix/tclUnixThrd.c +++ b/unix/tclUnixThrd.c @@ -15,7 +15,7 @@ #ifdef TCL_THREADS -typedef struct ThreadSpecificData { +typedef struct { char nabuf[16]; } ThreadSpecificData; @@ -683,7 +683,7 @@ TclpInetNtoa( static volatile int initialized = 0; static pthread_key_t key; -typedef struct allocMutex { +typedef struct { Tcl_Mutex tlock; pthread_mutex_t plock; } allocMutex; @@ -691,10 +691,10 @@ typedef struct allocMutex { Tcl_Mutex * TclpNewAllocMutex(void) { - struct allocMutex *lockPtr; + allocMutex *lockPtr; register pthread_mutex_t *plockPtr; - lockPtr = malloc(sizeof(struct allocMutex)); + lockPtr = malloc(sizeof(allocMutex)); if (lockPtr == NULL) { Tcl_Panic("could not allocate lock"); } |