X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.h;h=53e7444c8ad205c5bb6cc34ce22e4b2009621d1f;hb=81cd417b4584b0e3830940c5cb122c898afde08a;hp=4f98cc762fb041a0dac265a81cc9b1336b401150;hpb=c4517c013cf8cf1a388c94d90727dbe08938cc5a;p=stockfish diff --git a/src/search.h b/src/search.h index 4f98cc76..53e7444c 100644 --- a/src/search.h +++ b/src/search.h @@ -20,11 +20,11 @@ #if !defined(SEARCH_H_INCLUDED) #define SEARCH_H_INCLUDED -#include "move.h" -#include "types.h" - +#include #include +#include "types.h" + class Position; struct SplitPoint; @@ -54,6 +54,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,13 +67,13 @@ struct SignalsType { extern volatile SignalsType Signals; extern LimitsType Limits; extern std::vector RootMoves; -extern Position* RootPosition; +extern Position RootPosition; extern void init(); extern int64_t perft(Position& pos, Depth depth); extern void think(); -} +} // namespace extern void do_timer_event();