From: H.G. Muller Date: Thu, 25 Feb 2010 14:45:16 +0000 (+0100) Subject: Mark non-compliant lines of engine in debug file X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6112f15dc9df5810f2e487f32302c251069c2333;p=xboard.git Mark non-compliant lines of engine in debug file The option -engineDebugOutput is extended to accept value 3 for printing a cear indication of non-compliancy in the debug file. --- diff --git a/backend.c b/backend.c index 24e8378..1e1f78a 100644 --- a/backend.c +++ b/backend.c @@ -13367,8 +13367,10 @@ ReceiveFromProgram(isr, closure, message, count, error) sscanf(message, "error %c", &c)!=1 && sscanf(message, "illegal %c", &c)!=1 && sscanf(message, "tell%c", &c)!=1 && sscanf(message, "0-1 %c", &c)!=1 && sscanf(message, "1-0 %c", &c)!=1 && sscanf(message, "1/2-1/2 %c", &c)!=1 && - sscanf(message, "pong %c", &c)!=1 && start != '#') - { quote = "# "; print = (appData.engineComments == 2); } + sscanf(message, "pong %c", &c)!=1 && start != '#') { + quote = appData.engineComments == 2 ? "# " : "### NON-COMPLIANT! ### "; + print = (appData.engineComments >= 2); + } message[0] = start; // restore original message } if(print) {