Skip to content

Commit a1c3196

Browse files
committed
Incorrect redirection of debug output from preprocessor
When using the debug options `-d preprocessor` and `-d stderr` the resulting code text is not redirected to stderr but still written to stdout.
1 parent d2de45e commit a1c3196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pre.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4059,7 +4059,7 @@ void Preprocessor::processFile(const QCString &fileName,const std::string &input
40594059
size_t pos=0;
40604060
while (pos<output.size())
40614061
{
4062-
putchar(output[pos]);
4062+
Debug::print(Debug::Preprocessor,0,"%c", output[pos]);
40634063
if (output[pos]=='\n' && !Debug::isFlagSet(Debug::NoLineNo)) Debug::print(Debug::Preprocessor,0,"%05d ",++line);
40644064
pos++;
40654065
}

0 commit comments

Comments
 (0)