X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=blobdiff_plain;f=gnushogi%2Fcommondsp.c;h=6734e22e677b03ed8c423873872d8c9b80fe37c9;hp=1c5138797ff39f1e83a16432431160ddcda6ff26;hb=0995f733591542a626dd01c9c8552fffaf4ea04d;hpb=0edbcf26d5dbe0e17ce09cfa473fb41f8ec255f3 diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 1c51387..6734e22 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -51,7 +51,6 @@ char mvstr[4][6]; char *InPtr; -int InBackground = false; struct display *dsp = &raw_display; @@ -1315,58 +1314,6 @@ Undo(void) } -void -FlagString(unsigned short flags, char *s) -{ - short l, piece; - *s = '\0'; - - if (flags & promote) - strcat(s, " promote"); - - if (flags & dropmask) - strcat(s, " drop:"); - - if ((piece = (flags & pmask))) - { - l = strlen(s); - - if (is_promoted[piece]) - s[l++] = '+'; - - s[l++] = pxx[piece]; - s[l] = '\0'; - } - - if (flags & capture) - strcat(s, " capture"); - - if (flags & exact) - strcat(s, " exact"); - - if (flags & tesuji) - strcat(s, " tesuji"); - - if (flags & check) - strcat(s, " check"); - - if (flags & draw) - strcat(s, " draw"); - - if (flags & stupid) - strcat(s, " stupid"); - - if (flags & questionable) - strcat(s, " questionable"); - - if (flags & kingattack) - strcat(s, " kingattack"); - - if (flags & book) - strcat(s, " book"); -} - - static void TestSpeed(void(*f)(short side, short ply, short in_check, short blockable), @@ -2014,22 +1961,6 @@ InputCommand(char *command) printf("%d. %s %ld\n", ++mycnt2, s, TimeControl.clock[player] * 10); } - -#ifdef notdef /* optional pass best line to frontend with move */ - if (flag.post && !flag.mate) - { - int i; - - printf(" %6d ", MSCORE); - - for (i = 1; MV[i] > 0; i++) - { - algbr((short) (MV[i] >> 8), (short) (MV[i] & 0xFF), false); - printf("%5s ", mvstr[0]); - } - } - printf("\n"); -#endif } }