]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Fix an hang on 32 bits while allocating big TT table
[stockfish] / src / position.h
index 761724ad01d5aa9a1d47d47f37cb4bda5d820a8c..23d3094fed32630772405ceeeab4404f5095782c 100644 (file)
@@ -47,6 +47,8 @@ const int MaxGameLength = 220;
 //// Types
 ////
 
+class Position;
+
 /// struct checkInfo is initialized at c'tor time and keeps
 /// info used to detect if a move gives check.
 
@@ -220,8 +222,7 @@ public:
   bool square_is_weak(Square s, Color c) const;
 
   // Doing and undoing moves
-  void detach();
-  void do_setup_move(Move m, StateInfo& St);
+  void do_setup_move(Move m);
   void do_move(Move m, StateInfo& st);
   void do_move(Move m, StateInfo& st, const CheckInfo& ci, bool moveIsCheck);
   void undo_move(Move m);
@@ -276,6 +277,7 @@ private:
 
   // Initialization helper functions (used while setting up a position)
   void clear();
+  void detach();
   void put_piece(Piece p, Square s);
   void do_allow_oo(Color c);
   void do_allow_ooo(Color c);