Unify sp_search() and search() step 1

Rewrite sp_search() to have same signature of search()

This is the first prerequistite step toward unification.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-10-12 10:28:25 +02:00
parent 79a7647fe0
commit 37055ad002
2 changed files with 42 additions and 24 deletions

View File

@@ -47,6 +47,7 @@ const int PLY_MAX_PLUS_2 = 102;
/// search thread has its own array of SearchStack objects, indexed by the
/// current ply.
struct EvalInfo;
struct SplitPoint;
struct SearchStack {
Move currentMove;
@@ -57,6 +58,7 @@ struct SearchStack {
Depth reduction;
Value eval;
bool skipNullMove;
SplitPoint* sp;
};