From fcdbdffa69586a50e339d0a4aec9b75485c03214 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 23 Aug 2018 19:04:47 +0900 Subject: [PATCH] Fixed typedef-related warnings from compiler. Signed-off-by: Michele Calgaro --- knights/board_2d.h | 2 +- knights/definitions.h | 10 +++++----- knights/knightsmap.h | 2 +- knights/knightspixcache.h | 2 +- knights/pgn.h | 2 +- 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;