From affb2d78e0cfaa22e62573dd4e65d2bb3062471c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 26 Oct 2009 20:45:15 -0700 Subject: [PATCH] changed stderr to debug output, since stderr is closed in winboard --- parser.l | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 1.7.0.4