]> git.sesse.net Git - stockfish/blobdiff - src/search.h
Don't disable IO buffering at startup
[stockfish] / src / search.h
index 4f98cc762fb041a0dac265a81cc9b1336b401150..84704b0dc5d5a29ef177cdbbc8ae65951bd6cab0 100644 (file)
 #if !defined(SEARCH_H_INCLUDED)
 #define SEARCH_H_INCLUDED
 
+#include <cstring>
+#include <vector>
+
 #include "move.h"
 #include "types.h"
 
-#include <vector>
-
 class Position;
 struct SplitPoint;
 
@@ -54,6 +55,7 @@ namespace Search {
 
 struct LimitsType {
 
+  LimitsType() {  memset(this, 0, sizeof(LimitsType)); }
   bool useTimeManagement() const { return !(maxTime | maxDepth | maxNodes | infinite); }
 
   int time, increment, movesToGo, maxTime, maxDepth, maxNodes, infinite, ponder;
@@ -66,7 +68,7 @@ struct SignalsType {
 extern volatile SignalsType Signals;
 extern LimitsType Limits;
 extern std::vector<Move> RootMoves;
-extern Position* RootPosition;
+extern Position RootPosition;
 
 extern void init();
 extern int64_t perft(Position& pos, Depth depth);