summaryrefslogtreecommitdiff
path: root/games/gnuchess4/patches/patch-src_eval.c
blob: 7c41706af3e1ef232342305b4b2170d27e58fb39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
$NetBSD: patch-src_eval.c,v 1.1 2012/12/20 22:02:13 joerg Exp $

--- src/eval.c.orig	2012-12-20 19:23:42.000000000 +0000
+++ src/eval.c
@@ -173,7 +173,7 @@ SHORT pscore[2];
 #ifdef CACHE
 struct etable *etab[2];
 
-inline void
+static inline void
 PutInEETable (SHORT side,int score)
 
 /*
@@ -199,7 +199,7 @@ PutInEETable (SHORT side,int score)
     return;
 }
 
-inline int
+static inline int
 CheckEETable (SHORT side)
 
 /* Check the static cache for an entry  */
@@ -213,7 +213,7 @@ CheckEETable (SHORT side)
     return false;
 }
 
-inline int
+static inline int
 ProbeEETable (SHORT side, SHORT *score)
 
 /* Get an evaluation from the static cache */
@@ -265,7 +265,7 @@ ProbeEETable (SHORT side, SHORT *score)
  * PieceCnt[side] - just what it says
  */
 
-inline
+static inline
 int
 ScoreKPK (SHORT side,
 	  SHORT winner,
@@ -310,7 +310,7 @@ ScoreKPK (SHORT side,
     return (s);
 }
 
-inline
+static inline
 SHORT
 ScoreLoneKing (SHORT side)
 /*
@@ -353,7 +353,7 @@ ScoreLoneKing (SHORT side)
   return ((side == winner) ? s : -s);
 }
 
-inline
+static inline
 int
 ScoreKBNK (SHORT winner, SHORT king1, SHORT king2)
 /*
@@ -389,7 +389,7 @@ SHORT dist_ (SHORT f1, SHORT r1, SHORT f
   return distdata [ f1-9+8*r1 ][ f2-9+8*r2 ];
 }
 
-inline 
+static inline 
 int  
 ScoreK1PK (SHORT side,
            SHORT winner,
@@ -714,7 +714,7 @@ evaluate (register SHORT side,
     return (s);
 }
 
-inline
+static inline
 int
 BRscan (register SHORT sq, SHORT *mob)
 
@@ -777,7 +777,7 @@ BRscan (register SHORT sq, SHORT *mob)
     return s;
 }
 
-inline
+static inline
 SHORT
 KingScan (register SHORT sq)
 
@@ -871,7 +871,7 @@ KingScan (register SHORT sq)
 }
 
 
-inline
+static inline
 int
 trapped (register SHORT sq)
 
@@ -1023,7 +1023,7 @@ PawnValue (register SHORT sq, SHORT side
     return (s);
 }
 
-inline
+static inline
 int
 KnightValue (register SHORT sq, register SHORT side)
 
@@ -1052,7 +1052,7 @@ KnightValue (register SHORT sq, register
     return (s);
 }
 
-inline
+static inline
 int
 BishopValue (register SHORT sq, register SHORT side)
 
@@ -1085,7 +1085,7 @@ BishopValue (register SHORT sq, register
     return (s);
 }
 
-inline
+static inline
 int
 RookValue (register SHORT sq, register SHORT side)
 
@@ -1127,7 +1127,7 @@ RookValue (register SHORT sq, register S
     return (s);
 }
 
-inline
+static inline
 int
 QueenValue (register SHORT sq, register SHORT side)
 
@@ -1158,7 +1158,7 @@ QueenValue (register SHORT sq, register 
     return (s);
 }
 
-inline
+static inline
 int
 KingValue (register SHORT sq, register SHORT side)