From: Yann Dirson Date: Fri, 21 Feb 2014 22:11:30 +0000 (+0100) Subject: InputCommand: format alternatives consistently. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f6d799e4db50144a9370278018c93387bba6e554;p=gnushogi.git InputCommand: format alternatives consistently. --- diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index bcd84e1..4a2aa7f 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -1629,8 +1629,8 @@ InputCommand(char *command) { /* noop */ ; } - else if ((strcmp(s, "quit") == 0) - || (strcmp(s, "exit") == 0)) + else if ((strcmp(s, "quit") == 0) || + (strcmp(s, "exit") == 0)) { flag.quit = true; } @@ -1650,8 +1650,8 @@ InputCommand(char *command) #endif ); } - else if ((strcmp(s, "set") == 0) - || (strcmp(s, "edit") == 0)) + else if ((strcmp(s, "set") == 0) || + (strcmp(s, "edit") == 0)) { dsp->EditBoard(); } @@ -1830,12 +1830,12 @@ InputCommand(char *command) BookSave(); } #ifdef EASY_OPENINGS - else if ((strcmp(s, "?") == 0) - || (strcmp(s, "!") == 0) - || (strcmp(s, "~") == 0)) + else if ((strcmp(s, "?") == 0) || + (strcmp(s, "!") == 0) || + (strcmp(s, "~") == 0)) #else - else if ((strcmp(s, "?") == 0) - || (strcmp(s, "!") == 0)) + else if ((strcmp(s, "?") == 0) || + (strcmp(s, "!") == 0)) #endif { FlagMove(*s);