This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: cplus-dem.c tiny patch
- To: aph at pasanda dot cygnus dot co dot uk
- Subject: Re: cplus-dem.c tiny patch
- From: DJ Delorie <dj at delorie dot com>
- Date: Fri, 7 Jul 2000 09:52:02 -0400
- CC: binutils at sourceware dot cygnus dot com
- References: <20000707111652.17883.qmail@pasanda.cygnus.co.uk>
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.