diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-08-23 19:04:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-08-23 19:05:13 +0900 |
commit | f488cd7565cace760b8be469cfe24a06a6a124f7 (patch) | |
tree | e8eb5add33fc37d6a812175d23af44cf297a0ef7 /knights | |
parent | c899de9e8af67094aad26869913cf7e14c0c8c63 (diff) | |
download | knights-f488cd7565cace760b8be469cfe24a06a6a124f7.tar.gz knights-f488cd7565cace760b8be469cfe24a06a6a124f7.zip |
Fixed typedef-related warnings from compiler.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fcdbdffa69586a50e339d0a4aec9b75485c03214)
Diffstat (limited to 'knights')
-rw-r--r-- | knights/board_2d.h | 2 | ||||
-rw-r--r-- | knights/definitions.h | 10 | ||||
-rw-r--r-- | knights/knightsmap.h | 2 | ||||
-rw-r--r-- | knights/knightspixcache.h | 2 | ||||
-rw-r--r-- | knights/pgn.h | 2 | ||||
-rw-r--r-- | knights/resource.h | 4 |
6 files changed, 11 insertions, 11 deletions
diff --git a/knights/board_2d.h b/knights/board_2d.h index b021620..c26129d 100644 --- a/knights/board_2d.h +++ b/knights/board_2d.h @@ -26,7 +26,7 @@ *@author The Knights Team */ -typedef struct sprite +struct sprite { bool Restore; int Steps; diff --git a/knights/definitions.h b/knights/definitions.h index 5f1124e..33d4b5e 100644 --- a/knights/definitions.h +++ b/knights/definitions.h @@ -234,7 +234,7 @@ const char ICS_Examine = 1; const char ICS_Observe = 2; const char ICS_Movelist = 3; -typedef struct ThemeHeader +struct ThemeHeader { TQString name; TQString version; @@ -244,7 +244,7 @@ typedef struct ThemeHeader TQString notes; }; -typedef struct ChessMove +struct ChessMove { char fromFile; char fromRank; @@ -263,7 +263,7 @@ unsigned char NAG; bool ICS_ClockTicking; }; -typedef struct Chessman +struct Chessman { bool Army; char Type; @@ -271,7 +271,7 @@ typedef struct Chessman char Rank; }; -typedef struct Position +struct Position { char File; char Rank; @@ -280,7 +280,7 @@ typedef struct Position }; /* Time Control Period */ -typedef struct TCP +struct TCP { int Moves; int Seconds; diff --git a/knights/knightsmap.h b/knights/knightsmap.h index 21edeea..f49198f 100644 --- a/knights/knightsmap.h +++ b/knights/knightsmap.h @@ -30,7 +30,7 @@ class KnightsMap public: typedef Key KeyType; typedef T DataType; - typedef struct Pair + struct Pair { KeyType key; DataType data; diff --git a/knights/knightspixcache.h b/knights/knightspixcache.h index dedd438..ef7cd78 100644 --- a/knights/knightspixcache.h +++ b/knights/knightspixcache.h @@ -26,7 +26,7 @@ *@author Troy Corbin Jr. */ -typedef struct cacheItem +struct cacheItem { TQString label; TQPixmap item; diff --git a/knights/pgn.h b/knights/pgn.h index 161bb9a..7a0bc91 100644 --- a/knights/pgn.h +++ b/knights/pgn.h @@ -37,7 +37,7 @@ *@author Troy Corbin Jr. */ -typedef struct Annotation +struct Annotation { int RAV; TQString text; diff --git a/knights/resource.h b/knights/resource.h index 9812632..5d7cb1f 100644 --- a/knights/resource.h +++ b/knights/resource.h @@ -44,7 +44,7 @@ class KnightsPixCache; class TabManager; class Accel; -typedef struct engineResource +struct engineResource { TQListViewItem *Item; TQString Name; @@ -58,7 +58,7 @@ typedef struct engineResource int CurrentRef; }; -typedef struct serverResource +struct serverResource { TQListViewItem *Item; TQString Name; |