summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
348f824)
It was never clear to me why we needed this trick, and now
that we rely only on C++ std::getline() and std::cout for
input / output it is even more a mistery what this code does.
So disable it and wait to see if someone screams ;-)
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <iostream>
#include <string>
#include <iostream>
#include <string>
int main(int argc, char* argv[]) {
int main(int argc, char* argv[]) {
- // 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);
-
- // Startup initializations
init_bitboards();
Position::init();
kpk_bitbase_init();
init_bitboards();
Position::init();
kpk_bitbase_init();
uci_loop(); // Enter the UCI loop and wait for user input
}
uci_loop(); // Enter the UCI loop and wait for user input
}
- else if (string(argv[1]) == "bench" && argc < 8)
+ else if (string(argv[1]) == "bench")
benchmark(argc, argv);
else
benchmark(argc, argv);
else