1.1 --- a/src/chess/rules.h Wed Apr 16 20:32:25 2014 +0200 1.2 +++ b/src/chess/rules.h Wed Apr 16 21:16:05 2014 +0200 1.3 @@ -69,6 +69,11 @@ 1.4 1.5 typedef uint8_t Board[8][8]; 1.6 1.7 +struct movetimeval { 1.8 + uint64_t tv_sec; 1.9 + int32_t tv_usec; 1.10 +}; 1.11 + 1.12 typedef struct { 1.13 uint8_t piece; 1.14 uint8_t fromfile; 1.15 @@ -76,10 +81,10 @@ 1.16 uint8_t tofile; 1.17 uint8_t torow; 1.18 uint8_t promotion; 1.19 - struct timeval timestamp; 1.20 - struct timeval movetime; 1.21 - _Bool check; 1.22 - _Bool capture; 1.23 + struct movetimeval timestamp; 1.24 + struct movetimeval movetime; 1.25 + uint8_t check; 1.26 + uint8_t capture; 1.27 } Move; 1.28 1.29 typedef struct MoveList MoveList; 1.30 @@ -92,7 +97,7 @@ 1.31 1.32 typedef struct { 1.33 uint8_t servercolor; 1.34 - _Bool timecontrol; 1.35 + uint8_t timecontrol; 1.36 uint16_t time; 1.37 uint16_t addtime; 1.38 } GameInfo;