diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-02 09:28:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-07-02 09:28:05 (GMT) |
commit | 8d9bcf37ddbe36e3fd50042d8dfb15bc5a6c2d12 (patch) | |
tree | c3e3547bdaa0b24960c7befe661373841b11c38e /generic | |
parent | 7b6e25bd97a76f688ed363cac924ea99a83fa5f4 (diff) | |
download | tk-8d9bcf37ddbe36e3fd50042d8dfb15bc5a6c2d12.zip tk-8d9bcf37ddbe36e3fd50042d8dfb15bc5a6c2d12.tar.gz tk-8d9bcf37ddbe36e3fd50042d8dfb15bc5a6c2d12.tar.bz2 |
Don't use "struct ThreadSpecificData", while the type name "ThreadSpecificData" is already sufficient.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkBitmap.c | 2 | ||||
-rw-r--r-- | generic/tkButton.c | 2 | ||||
-rw-r--r-- | generic/tkColor.c | 2 | ||||
-rw-r--r-- | generic/tkConfig.c | 2 | ||||
-rw-r--r-- | generic/tkEvent.c | 2 | ||||
-rw-r--r-- | generic/tkGet.c | 2 | ||||
-rw-r--r-- | generic/tkImage.c | 2 | ||||
-rw-r--r-- | generic/tkImgPhoto.c | 2 | ||||
-rw-r--r-- | generic/tkMacWinMenu.c | 2 | ||||
-rw-r--r-- | generic/tkMenu.c | 2 | ||||
-rw-r--r-- | generic/tkObj.c | 2 | ||||
-rw-r--r-- | generic/tkOption.c | 2 | ||||
-rw-r--r-- | generic/tkPointer.c | 2 | ||||
-rw-r--r-- | generic/tkSelect.c | 2 | ||||
-rw-r--r-- | generic/tkStyle.c | 2 | ||||
-rw-r--r-- | generic/tkWindow.c | 2 |
16 files changed, 16 insertions, 16 deletions
diff --git a/generic/tkBitmap.c b/generic/tkBitmap.c index 88f3e2b..54bab69 100644 --- a/generic/tkBitmap.c +++ b/generic/tkBitmap.c @@ -88,7 +88,7 @@ typedef struct { int width, height; /* Dimensions of bitmap. */ } DataKey; -typedef struct ThreadSpecificData { +typedef struct { int initialized; /* 0 means table below needs initializing. */ Tcl_HashTable predefBitmapTable; /* Hash table created by Tk_DefineBitmap to diff --git a/generic/tkButton.c b/generic/tkButton.c index 0d760b0..37cfcd2 100644 --- a/generic/tkButton.c +++ b/generic/tkButton.c @@ -16,7 +16,7 @@ #include "tkButton.h" #include "default.h" -typedef struct ThreadSpecificData { +typedef struct { int defaultsInitialized; } ThreadSpecificData; static Tcl_ThreadDataKey dataKey; diff --git a/generic/tkColor.c b/generic/tkColor.c index ccb9914..f6650f9 100644 --- a/generic/tkColor.c +++ b/generic/tkColor.c @@ -31,7 +31,7 @@ typedef struct { * The structure below is used to allocate thread-local data. */ -typedef struct ThreadSpecificData { +typedef struct { char rgbString[20]; /* */ } ThreadSpecificData; static Tcl_ThreadDataKey dataKey; diff --git a/generic/tkConfig.c b/generic/tkConfig.c index d3c8aad..f1a5176 100644 --- a/generic/tkConfig.c +++ b/generic/tkConfig.c @@ -31,7 +31,7 @@ * the option tables that have been created for a thread. */ -typedef struct ThreadSpecificData { +typedef struct { int initialized; /* 0 means table below needs initializing. */ Tcl_HashTable hashTable; } ThreadSpecificData; diff --git a/generic/tkEvent.c b/generic/tkEvent.c index 891f667..b36d5de 100644 --- a/generic/tkEvent.c +++ b/generic/tkEvent.c @@ -139,7 +139,7 @@ typedef struct ExitHandler { * storage for the current thread. */ -typedef struct ThreadSpecificData { +typedef struct { int handlersActive; /* The following variable has a non-zero value * when a handler is active. */ InProgress *pendingPtr; /* Topmost search in progress, or NULL if diff --git a/generic/tkGet.c b/generic/tkGet.c index d58b4a5..6eff3a3 100644 --- a/generic/tkGet.c +++ b/generic/tkGet.c @@ -22,7 +22,7 @@ * the current thread. */ -typedef struct ThreadSpecificData { +typedef struct { int initialized; Tcl_HashTable uidTable; } ThreadSpecificData; diff --git a/generic/tkImage.c b/generic/tkImage.c index 32e09c0..dc4e8e0 100644 --- a/generic/tkImage.c +++ b/generic/tkImage.c @@ -66,7 +66,7 @@ typedef struct ImageMaster { * when the world is falling apart.) */ } ImageMaster; -typedef struct ThreadSpecificData { +typedef struct { Tk_ImageType *imageTypeList;/* First in a list of all known image * types. */ Tk_ImageType *oldImageTypeList; diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c index 26f1f26..03b3731 100644 --- a/generic/tkImgPhoto.c +++ b/generic/tkImgPhoto.c @@ -125,7 +125,7 @@ Tk_ImageType tkPhotoImageType = { NULL }; -typedef struct ThreadSpecificData { +typedef struct { Tk_PhotoImageFormat *formatList; /* Pointer to the first in the list of known * photo image formats.*/ diff --git a/generic/tkMacWinMenu.c b/generic/tkMacWinMenu.c index 9449838..ab92fec 100644 --- a/generic/tkMacWinMenu.c +++ b/generic/tkMacWinMenu.c @@ -13,7 +13,7 @@ #include "tkInt.h" #include "tkMenu.h" -typedef struct ThreadSpecificData { +typedef struct { int postCommandGeneration; } ThreadSpecificData; static Tcl_ThreadDataKey dataKey; diff --git a/generic/tkMenu.c b/generic/tkMenu.c index 3a2d987..d755096 100644 --- a/generic/tkMenu.c +++ b/generic/tkMenu.c @@ -77,7 +77,7 @@ #define MENU_HASH_KEY "tkMenus" -typedef struct ThreadSpecificData { +typedef struct { int menusInitialized; /* Flag indicates whether thread-specific * elements of the Windows Menu module have * been initialized. */ diff --git a/generic/tkObj.c b/generic/tkObj.c index 46f2da5..94d9879 100644 --- a/generic/tkObj.c +++ b/generic/tkObj.c @@ -47,7 +47,7 @@ typedef struct PixelRep { * thread. */ -typedef struct ThreadSpecificData { +typedef struct { const Tcl_ObjType *doubleTypePtr; const Tcl_ObjType *intTypePtr; } ThreadSpecificData; diff --git a/generic/tkOption.c b/generic/tkOption.c index 545a9b9..713a6d5 100644 --- a/generic/tkOption.c +++ b/generic/tkOption.c @@ -176,7 +176,7 @@ typedef struct StackLevel { * of a level. */ } StackLevel; -typedef struct ThreadSpecificData { +typedef struct { int initialized; /* 0 means the ThreadSpecific Data structure * for the current thread needs to be * initialized. */ diff --git a/generic/tkPointer.c b/generic/tkPointer.c index 0141b64..6e87638 100644 --- a/generic/tkPointer.c +++ b/generic/tkPointer.c @@ -35,7 +35,7 @@ static const unsigned int buttonMasks[] = { }; #define ButtonMask(b) (buttonMasks[(b)-Button1]) -typedef struct ThreadSpecificData { +typedef struct { TkWindow *grabWinPtr; /* Window that defines the top of the grab * tree in a global grab. */ int lastState; /* Last known state flags. */ diff --git a/generic/tkSelect.c b/generic/tkSelect.c index 8ba0c5f..c64c93f 100644 --- a/generic/tkSelect.c +++ b/generic/tkSelect.c @@ -48,7 +48,7 @@ typedef struct LostCommand { * The structure below is used to keep each thread's pending list separate. */ -typedef struct ThreadSpecificData { +typedef struct { TkSelInProgress *pendingPtr; /* Topmost search in progress, or NULL if * none. */ diff --git a/generic/tkStyle.c b/generic/tkStyle.c index d9299d1..5c0f204 100644 --- a/generic/tkStyle.c +++ b/generic/tkStyle.c @@ -98,7 +98,7 @@ typedef struct Element { * Thread-local data. */ -typedef struct ThreadSpecificData { +typedef struct { int nbInit; /* Number of calls to the init proc. */ Tcl_HashTable engineTable; /* Map a name to a style engine. Keys are * strings, values are Tk_StyleEngine diff --git a/generic/tkWindow.c b/generic/tkWindow.c index ee8e1a9..51cbaf3 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -37,7 +37,7 @@ typedef struct TkHalfdeadWindow { struct TkHalfdeadWindow *nextPtr; } TkHalfdeadWindow; -typedef struct ThreadSpecificData { +typedef struct { int numMainWindows; /* Count of numver of main windows currently * open in this thread. */ TkMainInfo *mainWindowList; |