From: Yann Dirson Date: Sat, 22 Feb 2014 15:14:19 +0000 (+0100) Subject: XBoard: split printing of the features line for clarity. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=HEAD;p=gnushogi.git XBoard: split printing of the features line for clarity. --- diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index fb64413..4718fd9 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -1648,13 +1648,22 @@ InputCommand(char *command) } else if (strcmp(s, "protover") == 0) { - printf("feature myname=\"GNU %sShogi %s\" variants=\"%s\" debug=1 setboard=0 sigint=0 done=1\n", + printf("feature myname=\"GNU %s %s\" ", #ifdef MINISHOGI - "mini", PACKAGE_VERSION, "5x5+5_shogi,mini" + "MiniShogi", #else - "", PACKAGE_VERSION, "shogi" + "Shogi", #endif - ); + PACKAGE_VERSION + ); + printf("variants=\"%s\" ", +#ifdef MINISHOGI + "5x5+5_shogi,minishogi" +#else + "shogi" +#endif + ); + printf("debug=1 setboard=0 sigint=0 done=1\n"); } else if ((strcmp(s, "set") == 0) || (strcmp(s, "edit") == 0))