From: H.G. Muller Date: Tue, 27 Oct 2009 03:45:15 +0000 (-0700) Subject: changed stderr to debug output, since stderr is closed in winboard X-Git-Tag: v4.4.1~14 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=affb2d78e0cfaa22e62573dd4e65d2bb3062471c;p=xboard.git changed stderr to debug output, since stderr is closed in winboard --- 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; }