Libxo bugs and fixes.

Phil Shafer phil at juniper.net
Mon Jan 5 00:33:31 UTC 2015


Alfred Perlstein writes:
>I think we REALLY want to have the fflush be a callback offered by libxo, otherwise the 
>layering violations are pretty difficult to deal with.  Consider if libxo is outputting 
>to a non-stdio buffer, then what is the paradigm?  Is it not better to give libxo a "flu
>sh" callback and have that exposed via the xop interface?

The problem is divining when to flush.  If you are whiffling thru a list,
does the app want to flush after each list member, or when the complete
list is done.

Or maybe you are just looking at the case when pretty output
is made to the terminal?

Thanks,
 Phil


More information about the freebsd-arch mailing list