X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmain.cpp;h=75268175e0694048ca3ad0937e8dbbda2a79ee63;hp=fa821151359ac31cb904ebfd66226ae89d49955a;hb=29076043e073c3d6e3b90b0809afc2a0af57e5e1;hpb=caa02b0e43dbce0c723bc6499aab811ca3e5408e diff --git a/src/main.cpp b/src/main.cpp index fa821151..75268175 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,6 +25,7 @@ //// Includes //// +#include #include #include @@ -54,7 +55,9 @@ extern void benchmark(int argc, char* argv[]); int main(int argc, char* argv[]) { - // Disable IO buffering + // Disable IO buffering for C and C++ standard libraries + setvbuf(stdin, NULL, _IONBF, 0); + setvbuf(stdout, NULL, _IONBF, 0); cout.rdbuf()->pubsetbuf(NULL, 0); cin.rdbuf()->pubsetbuf(NULL, 0); @@ -97,7 +100,7 @@ int main(int argc, char* argv[]) { { if (string(argv[1]) != "bench" || argc > 7) cout << "Usage: stockfish bench [hash size = 128] [threads = 1] " - << "[limit = 12] [fen positions file = default] " + << "[limit = 11] [fen positions file = default] " << "[depth, time, perft or node limited = depth]" << endl; else benchmark(argc, argv);