X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.h;h=5f9b74d7e530e4b0df12bc6e851678b9bc845249;hp=c573807b41bd01c1d9c28cf79464b94570e317da;hb=6008f6538e9c3912c88e89d77ef3e3d3351a6e55;hpb=d84865eac3d7b694b6ad9b6eb95c7a3097b38b3d diff --git a/src/search.h b/src/search.h index c573807b..5f9b74d7 100644 --- a/src/search.h +++ b/src/search.h @@ -21,12 +21,14 @@ #define SEARCH_H_INCLUDED #include +#include +#include #include #include "misc.h" +#include "position.h" #include "types.h" -class Position; struct SplitPoint; namespace Search { @@ -91,14 +93,17 @@ struct SignalsType { bool stopOnPonderhit, firstRootMove, stop, failedLowAtRoot; }; +typedef std::auto_ptr > StateStackPtr; + extern volatile SignalsType Signals; extern LimitsType Limits; extern std::vector RootMoves; extern Position RootPosition; -extern Time SearchTime; +extern Time::point SearchTime; +extern StateStackPtr SetupStates; extern void init(); -extern int64_t perft(Position& pos, Depth depth); +extern size_t perft(Position& pos, Depth depth); extern void think(); } // namespace Search