Mark non-compliant lines of engine in debug file
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 25 Feb 2010 14:45:16 +0000 (15:45 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 25 Feb 2010 14:45:16 +0000 (15:45 +0100)
The option -engineDebugOutput is extended to accept value 3 for printing
a cear indication of non-compliancy in the debug file.

backend.c

index 24e8378..1e1f78a 100644 (file)
--- 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) {