From 9a433d9afb150b328443a5854ad4d2105dba6289 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 22 Feb 2014 16:14:19 +0100 Subject: [PATCH] XBoard: split printing of the features line for clarity. --- gnushogi/commondsp.c | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) 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)) -- 1.7.0.4