mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 14:27:45 +00: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:
+1
-15
@@ -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