mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Remove global variables from search.h
Globals are not really needed, so redefine as locals. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
16
src/search.h
16
src/search.h
@@ -26,12 +26,7 @@
|
||||
////
|
||||
|
||||
#include "depth.h"
|
||||
#include "history.h"
|
||||
#include "lock.h"
|
||||
#include "movegen.h"
|
||||
#include "position.h"
|
||||
#include "tt.h"
|
||||
#include "value.h"
|
||||
#include "move.h"
|
||||
|
||||
|
||||
////
|
||||
@@ -65,15 +60,6 @@ struct SearchStack {
|
||||
};
|
||||
|
||||
|
||||
////
|
||||
//// Global variables
|
||||
////
|
||||
|
||||
extern TranspositionTable TT;
|
||||
extern int ActiveThreads;
|
||||
extern Lock SMPLock;
|
||||
|
||||
|
||||
////
|
||||
//// Prototypes
|
||||
////
|
||||
|
||||
Reference in New Issue
Block a user