From d2ad5acddda723430971f4ce06916db645f7e06f Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 7 Nov 2010 13:12:48 +0100 Subject: [PATCH] Object OpeningBook doen't need to be global No functional change. Signed-off-by: Marco Costalba --- src/book.cpp | 7 ------- src/book.h | 8 -------- src/search.cpp | 5 ++++- src/uci.cpp | 1 - 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/book.cpp b/src/book.cpp index 2aca81cf..c066f7a4 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -36,13 +36,6 @@ using namespace std; -//// -//// Global variables -//// - -Book OpeningBook; - - //// //// Local definitions //// diff --git a/src/book.h b/src/book.h index 45d75688..bfc82d93 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 a4795c6a..59c717ca 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 a4964ecd..6adaf392 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" -- 2.39.2