Keep list of excluded moves in Engine Output header
[xboard.git] / engineoutput.c
index a409f19..2b82948 100644 (file)
 # define  _(s) gettext (s)
 # define N_(s) gettext_noop (s)
 #else
-# define  _(s) (s)
+# ifdef WIN32
+#  define  _(s) T_(s)
+#  undef  ngettext
+#  define  ngettext(s,p,n) T_(p)
+# else
+#  define  _(s) (s)
+# endif
 # define N_(s)  s
 #endif
 
@@ -107,7 +113,7 @@ MakeEngineOutputTitle ()
        count = currentMove - count;
        if(!rule) rule = 100;
        if(count >= rule - 40 && (!appData.icsActive || gameMode == IcsObserving)) {
-               snprintf(buf, MSG_SIZ, _("%s (%d reversible plies)"), title, count);
+               snprintf(buf, MSG_SIZ, ngettext("%s (%d reversible ply)", "%s (%d reversible plies)", count), title, count);
                safeStrCpy(title, buf, MSG_SIZ);
        }
        if(!strcmp(oldTitle, title)) return;
@@ -214,10 +220,13 @@ SetProgramStats (FrontEndProgramStats * stats) // now directly called by back-en
     if( clearMemo ) {
         DoClearMemo(which); nrVariations[which] = 0;
         header[0] = NULLCHAR;
-        if(gameMode == AnalyzeMode && (multi = MultiPV(&first)) >= 0) {
+        if(gameMode == AnalyzeMode) {
+          if((multi = MultiPV(&first)) >= 0) {
             snprintf(header, MSG_SIZ, "\t%s viewpoint\t\tfewer / Multi-PV setting = %d / more\n",
                                        appData.whitePOV || appData.scoreWhite ? "white" : "mover", first.option[multi].value);
-            InsertIntoMemo( which, header, 0);
+         }
+          snprintf(header+strlen(header), MSG_SIZ-strlen(header), exclusionHeader);
+          InsertIntoMemo( which, header, 0);
         } else
         if(appData.ponderNextMove && lastLine[which][0]) {
             InsertIntoMemo( which, lastLine[which], 0 );