mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 03:26:24 +08:00
Convert book.cpp to use C++ I/O
Instead of old C stdio.h Also small code clean up while there. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
//// Includes
|
||||
////
|
||||
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
|
||||
#include "move.h"
|
||||
@@ -74,7 +75,7 @@ private:
|
||||
void read_entry(BookEntry &entry, int n) const;
|
||||
|
||||
std::string fileName;
|
||||
FILE *bookFile;
|
||||
mutable std::ifstream bookFile;
|
||||
int bookSize;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user