summaryrefslogtreecommitdiffstats
path: root/knights
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-08-23 19:04:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-08-23 19:04:47 +0900
commitfcdbdffa69586a50e339d0a4aec9b75485c03214 (patch)
treec1cb42ecc0ffdf940ca5cd6ceebe888950371e1e /knights
parent77cbbb9f3419d1e0caefe44857726f8730f822a3 (diff)
downloadknights-fcdbdffa69586a50e339d0a4aec9b75485c03214.tar.gz
knights-fcdbdffa69586a50e339d0a4aec9b75485c03214.zip
Fixed typedef-related warnings from compiler.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'knights')
-rw-r--r--knights/board_2d.h2
-rw-r--r--knights/definitions.h10
-rw-r--r--knights/knightsmap.h2
-rw-r--r--knights/knightspixcache.h2
-rw-r--r--knights/pgn.h2
-rw-r--r--knights/resource.h4
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;