X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=parser.l;h=7e77c888285d2ad65fe083ed7a621fd1a351480e;hb=affb2d78e0cfaa22e62573dd4e65d2bb3062471c;hp=bfa1a1770a5f996fa8dcf89422131fc13d4aa187;hpb=2f50821e4f038bbe440b4c23403147fb9c5e35f6;p=xboard.git diff --git a/parser.l b/parser.l index bfa1a17..7e77c88 100755 --- a/parser.l +++ b/parser.l @@ -988,7 +988,7 @@ int yyoffset() static void output(ch) int ch; { - fprintf(stderr, "PARSER BUG: unmatched character '%c' (0%o)\n", + if(appData.debugMode) fprintf(debugFP, "PARSER BUG: unmatched character '%c' (0%o)\n", ch, ch); } @@ -1000,7 +1000,7 @@ static void unput(ch) StringToLex--; } else { if (unputCount >= UNPUT_BUF_SIZE) - fprintf(stderr, "PARSER BUG: unput buffer overflow '%c' (0%o)\n", + if(appData.debugMode) fprintf(debugFP, "PARSER BUG: unput buffer overflow '%c' (0%o)\n", ch, ch); unputBuffer[unputCount++] = ch; }