cplus-dem.c tiny patch
DJ Delorie
dj@delorie.com
Fri Jul 7 06:52:00 GMT 2000
Wouldn't it be better to just call setvbuf() in main, forcing the
output to be line buffered instead of block buffered? It would more
obviously show your intentions, rather than a naked fflush in the
middle of a loop with no comments saying why it's there.
By your argument, one could also claim that c++filt should have
*unbuffered* output, so that as soon as it has a symbol to demangle,
it spits it out. That way, you could use any delimiter, not just
newlines.
More information about the Binutils
mailing list