{
}
-/* Initialize private members at startup. */
-
-cli_ui_out *
-cli_out_new (struct ui_file *stream)
-{
- return new cli_ui_out (stream, ui_source_list);
-}
-
ui_file *
cli_ui_out::set_stream (struct ui_file *stream)
{
{
public:
- explicit cli_ui_out (ui_file *stream, ui_out_flags flags);
+ explicit cli_ui_out (ui_file *stream, ui_out_flags flags = ui_source_list);
virtual ~cli_ui_out ();
ui_file *set_stream (ui_file *stream);
std::vector<cli_progress_info> m_meters;
};
-extern cli_ui_out *cli_out_new (struct ui_file *stream);
-
extern void cli_display_match_list (char **matches, int len, int max);
#endif
: cli_interp_base (name)
{
/* Create a default uiout builder for the CLI. */
- this->cli_uiout = cli_out_new (gdb_stdout);
+ this->cli_uiout = new cli_ui_out (gdb_stdout);
}
cli_interp::~cli_interp ()
mi->event_channel = new mi_console_file (mi->raw_stdout, "=", 0);
mi->mi_uiout = mi_out_new (name ());
gdb_assert (mi->mi_uiout != nullptr);
- mi->cli_uiout = cli_out_new (mi->out);
+ mi->cli_uiout = new cli_ui_out (mi->out);
if (top_level)
{
tui_out = tui_out_new (tui_stdout);
/* Create the default UI. */
- tui_old_uiout = cli_out_new (gdb_stdout);
+ tui_old_uiout = new cli_ui_out (gdb_stdout);
#ifdef TUI_USE_PIPE_FOR_READLINE
/* Temporary solution for readline writing to stdout: redirect