From: Marco Costalba Date: Sun, 7 Nov 2010 12:12:48 +0000 (+0100) Subject: Object OpeningBook doen't need to be global X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d2ad5acddda723430971f4ce06916db645f7e06f;p=fairystockfish.git Object OpeningBook doen't need to be global No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/book.cpp b/src/book.cpp index 2aca81c..c066f7a 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -37,13 +37,6 @@ using namespace std; //// -//// Global variables -//// - -Book OpeningBook; - - -//// //// Local definitions //// diff --git a/src/book.h b/src/book.h index 45d7568..bfc82d9 100644 --- a/src/book.h +++ b/src/book.h @@ -78,12 +78,4 @@ private: RKISS RKiss; }; - -//// -//// Global variables -//// - -extern Book OpeningBook; - - #endif // !defined(BOOK_H_INCLUDED) diff --git a/src/search.cpp b/src/search.cpp index a4795c6..59c717c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -228,7 +228,10 @@ namespace { const Value EasyMoveMargin = Value(0x200); - /// Global variables + /// Namespace variables + + // Book object + Book OpeningBook; // Iteration counter int Iteration; diff --git a/src/uci.cpp b/src/uci.cpp index a4964ec..6adaf39 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -27,7 +27,6 @@ #include #include -#include "book.h" #include "evaluate.h" #include "misc.h" #include "move.h"