[RFA 0/6] Remove some uses of is_mi_like_p

Tom Tromey
2018-04-30T14:07:37Z

I think in the long run it would be good to remove
ui_out::is_mi_like_p. This series removes some unnecessary uses of
it. This is a mild improvement because it means there will be less
temptation for people to copy bad examples from the existing code.

Relatedly, I had an idea for how to change cli_out so that most
(perhaps not all -- there are some tricky cases) uses of is_mi_like_p
could be removed, and also provide new features like user control over
display and colorizing.

The basic idea is first to realize that table names are fixed by the
MI spec, and so can be relied on by cli_out. Then, whereever there is
a sequence involving textual output mixed with ui_out field output,
the whole sequence could be replaced with a format string that
references the field names.

Regression tested by the buildbot.

Tom