This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cplus-dem.c tiny patch



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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]