From: Marco Costalba Date: Fri, 19 Sep 2008 19:36:16 +0000 (+0100) Subject: Finally remove last old C style I/O stuff X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=2dbc8feae32e923904a9d05ced4847fd8e6f6724;hp=c034cce27c5dfb28f4b3c430e365675710ec96c2 Finally remove last old C style I/O stuff Now I/O is fully done with C++ iostreams. The only exception is in non-windows version of Bioskey() in misc.cpp Signed-off-by: Marco Costalba --- diff --git a/src/main.cpp b/src/main.cpp index bd4958d9..e89fee0e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,7 +21,6 @@ //// Includes //// -#include #include #include "benchmark.h" @@ -48,8 +47,6 @@ using std::string; int main(int argc, char *argv[]) { // Disable IO buffering - setbuf(stdin, NULL); - setbuf(stdout, NULL); std::cout.rdbuf()->pubsetbuf(NULL, 0); std::cin.rdbuf()->pubsetbuf(NULL, 0); diff --git a/src/position.cpp b/src/position.cpp index 72ab5f75..57f4fd02 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -22,7 +22,6 @@ //// #include -#include #include #include diff --git a/src/search.cpp b/src/search.cpp index 8f2cbb0a..88d3e8a0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -22,7 +22,6 @@ //// #include -#include #include #include #include diff --git a/src/square.cpp b/src/square.cpp index 6ac9b2fb..ad23d762 100644 --- a/src/square.cpp +++ b/src/square.cpp @@ -22,7 +22,6 @@ //// #include -#include #include #include "square.h"