Move Key declaration upstream
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 15 May 2017 19:54:37 +0000 (21:54 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 15 May 2017 19:54:37 +0000 (21:54 +0200)
dropper.c

index 4d86e30..1200942 100644 (file)
--- a/dropper.c
+++ b/dropper.c
@@ -34,6 +34,8 @@
 #define C_DISTANT 0xFF00
 #define C_CONTACT 0x00FF
 
+typedef long long int Key;
+
 int ply, nodeCount, forceMove, choice, rootMove, lastGameMove, rootScore, abortFlag, postThinking=1; // some frequently used data
 int maxDepth=MAXPLY-2, timeControl=3000, mps=40, inc, timePerMove, timeLeft=1000; // TC parameters
 
@@ -690,8 +692,6 @@ Debug ()
 
 #define KEY(A, B) (pieceKey[A]*(Key) squareKey[B])
 
-typedef long long int Key;
-
 typedef struct { // 12 bytes
     unsigned int lock;
     short int score;