From: H.G. Muller Date: Thu, 9 Jun 2011 07:58:34 +0000 (+0200) Subject: version 1.4.35b X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=commitdiff_plain;h=acb140befabd8b0f1a8606470013b420d05b4fb7 version 1.4.35b --- diff --git a/ChangeLog b/ChangeLog index b63a77a..ea9082b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,13 +1,15 @@ +=========1.4.35b================ +- New WbWorkAround for silly bug in WB. Depth <=1 clears the engine output window. Why should an engine not be allowed to send info at depth one? =========1.4.34b================ - Warning: this release is less well tested as usual - Allow spaces around "=" in "option =" commands. -- WbWorkArounds is now true by default. +- WbWorkArounds is now true by default. It decapitalizes Draw when this appears in engine option. - Trying to set a non existent UCI option gives an error. - PG will now resign in case of an illegal engine move. - More code has been put in "pipex". - info strings and unrecognized info lines are relayed to the GUI. =========1.4.33b================ -- New option: "WbWorkArounds". Currently it blocks options which contain "Draw" in their name from being sent to the GUI. Engines that have such options are Rybka and HIARCS. +- New option: "WbWorkArounds" to work around bugs in WB. Currently it blocks options which contain "Draw" in their name from being sent to the GUI. Engines that have such options are Rybka and HIARCS. - Bugfix for ASSERT failure in bright. Now another ASSERT failure has appeared which seems to be bright's fault however. =========1.4.32b================ - Bugfix: the default setting for RepeatPV had become false again... diff --git a/config.h b/config.h index 10f758d..4d18e66 100644 --- a/config.h +++ b/config.h @@ -115,13 +115,13 @@ #define PACKAGE_NAME "polyglot" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "polyglot 1.4.34b" +#define PACKAGE_STRING "polyglot 1.4.35b" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "polyglot" /* Define to the version of this package. */ -#define PACKAGE_VERSION "1.4.34b" +#define PACKAGE_VERSION "1.4.35b" /* Define to 1 if the C compiler supports function prototypes. */ #define PROTOTYPES 1 @@ -150,7 +150,7 @@ #define TIME_WITH_SYS_TIME 1 /* Version number of package */ -#define VERSION "1.4.34b" +#define VERSION "1.4.35b" /* Define like PROTOTYPES; this can be used by system headers. */ #define __PROTOTYPES 1 diff --git a/configure b/configure index e4d62f1..62d838e 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61 for polyglot 1.4.34b. +# Generated by GNU Autoconf 2.61 for polyglot 1.4.35b. # # Report bugs to . # @@ -574,8 +574,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='polyglot' PACKAGE_TARNAME='polyglot' -PACKAGE_VERSION='1.4.34b' -PACKAGE_STRING='polyglot 1.4.34b' +PACKAGE_VERSION='1.4.35b' +PACKAGE_STRING='polyglot 1.4.35b' PACKAGE_BUGREPORT='michel.vandenbergh@uhasselt.be' ac_unique_file="mainloop.c" @@ -1207,7 +1207,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures polyglot 1.4.34b to adapt to many kinds of systems. +\`configure' configures polyglot 1.4.35b to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1273,7 +1273,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of polyglot 1.4.34b:";; + short | recursive ) echo "Configuration of polyglot 1.4.35b:";; esac cat <<\_ACEOF @@ -1357,7 +1357,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -polyglot configure 1.4.34b +polyglot configure 1.4.35b generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1371,7 +1371,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by polyglot $as_me 1.4.34b, which was +It was created by polyglot $as_me 1.4.35b, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ @@ -2061,7 +2061,7 @@ fi # Define the identity of the package. PACKAGE='polyglot' - VERSION='1.4.34b' + VERSION='1.4.35b' cat >>confdefs.h <<_ACEOF @@ -6848,7 +6848,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by polyglot $as_me 1.4.34b, which was +This file was extended by polyglot $as_me 1.4.35b, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -6901,7 +6901,7 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -polyglot config.status 1.4.34b +polyglot config.status 1.4.35b configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" diff --git a/configure.ac b/configure.ac index 5cec935..42efee9 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) -AC_INIT([polyglot], [1.4.34b], [michel.vandenbergh@uhasselt.be]) +AC_INIT([polyglot], [1.4.35b], [michel.vandenbergh@uhasselt.be]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([mainloop.c]) AC_CONFIG_HEADER([config.h]) diff --git a/main.c b/main.c index e2f4c64..e34fb05 100644 --- a/main.c +++ b/main.c @@ -35,7 +35,7 @@ // constants -static const char * const Version = "1.4.34b"; +static const char * const Version = "1.4.35b"; static const char * const HelpMessage = "\ SYNTAX\n\ * polyglot [configfile]\n\ diff --git a/polyglot.spec b/polyglot.spec index e3f1504..3a823ab 100644 --- a/polyglot.spec +++ b/polyglot.spec @@ -1,6 +1,6 @@ Summary: A Winboard protocol to UCI protocol adapter Name: polyglot -Version: 1.4.34b +Version: 1.4.35b Release: 1 License: GPL Group: Amusement/Games diff --git a/xboard2uci.c b/xboard2uci.c index 97c7b73..529f041 100644 --- a/xboard2uci.c +++ b/xboard2uci.c @@ -1462,10 +1462,17 @@ static void send_board(int extra_move) { // send_info() static void send_info() { - if (XB->post) { - gui_send(GUI,"%d %+d %.0f "S64_FORMAT" %s",Uci->best_depth>0?Uci->best_depth:1, + int min_depth; + if(option_get_bool(Option,"WbWorkArounds")){ + // Silly bug in some versions of WinBoard. + // depth <=1 clears the engine output window. + // Why shouldn't an engine be allowed to send info at depth 1? + min_depth=2; + }else{ + min_depth=1; + } + gui_send(GUI,"%d %+d %.0f "S64_FORMAT" %s",Uci->best_depth>min_depth?Uci->best_depth:min_depth, 0,0,0.0,0,Uci->info); - } } // send_pv()