From: Marco Costalba Date: Sat, 26 May 2012 21:43:23 +0000 (+0100) Subject: Rename psq_score in ReducedStateInfo X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=3361ad42420e578362dcafb94b639738609bf7d7;hp=6c9c6dd989b037992f789ea182cafb630ca77f7c;ds=sidebyside Rename psq_score in ReducedStateInfo So to be fully in sync with StateInfo, and move struct to position.h, just below StateInfo. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/position.cpp b/src/position.cpp index fd7b1ba2..c26ab1b6 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -700,14 +700,6 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI // Copy some fields of old state to our new StateInfo object except the ones // which are recalculated from scratch anyway, then switch our state pointer // to point to the new, ready to be updated, state. - struct ReducedStateInfo { - Key pawnKey, materialKey; - Value npMaterial[2]; - int castleRights, rule50, pliesFromNull; - Score psq_score; - Square epSquare; - }; - memcpy(&newSt, st, sizeof(ReducedStateInfo)); newSt.previous = st; diff --git a/src/position.h b/src/position.h index 6351f580..55dc33fe 100644 --- a/src/position.h +++ b/src/position.h @@ -60,6 +60,14 @@ struct StateInfo { StateInfo* previous; }; +struct ReducedStateInfo { + Key pawnKey, materialKey; + Value npMaterial[2]; + int castleRights, rule50, pliesFromNull; + Score psqScore; + Square epSquare; +}; + /// The position data structure. A position consists of the following data: ///