]> git.sesse.net Git - stockfish/commitdiff
Expose EvalInfo struct to search
authorMarco Costalba <mcostalba@gmail.com>
Thu, 25 Apr 2013 10:43:55 +0000 (12:43 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 25 Apr 2013 10:57:37 +0000 (12:57 +0200)
Allow to use EvalInfo struct, populated by
evaluation(), in search.

In particular we allocate Eval::Info on the stack
and pass a pointer to this to evaluate().

Also add to Search::Stack a pointer to Eval::Info,
this allows to reference eval info of previous/next
nodes.

WARNING: Eval::Info is NOT initialized and is populated
by evaluate(), only if the latter is called, and this
does not happen in all the code paths, so care should be
taken when accessing this struct.

No functional change.


No differences found