struct ui_out * cli_out_new (struct ui_file *stream) { int flags = ui_source_list; cli_out_data *data = XNEW (cli_out_data); cli_out_data_ctor (data, stream); return ui_out_new (&cli_ui_out_impl, data, flags); }
struct ui_out * cli_out_new (struct ui_file *stream) { ui_out_flags flags = ui_source_list; cli_out_data *data = new cli_out_data (); cli_out_data_ctor (data, stream); return ui_out_new (&cli_ui_out_impl, data, flags); }
struct ui_out * cli_out_new (struct ui_file *stream) { int flags = ui_source_list; struct ui_out_data *data = XMALLOC (struct ui_out_data); data->stream = stream; data->suppress_output = 0; return ui_out_new (&cli_ui_out_impl, data, flags); }
struct ui_out * tui_out_new (struct ui_file *stream) { int flags = 0; tui_out_data *data = XMALLOC (tui_out_data); data->stream = stream; data->suppress_output = 0; data->line = -1; data->start_of_line = 0; return ui_out_new (&tui_ui_out_impl, data, flags); }
struct ui_out * mi_out_new (int mi_version) { int flags = 0; struct ui_out_data *data = XMALLOC (struct ui_out_data); data->suppress_field_separator = 0; data->suppress_output = 0; data->mi_version = mi_version; /* FIXME: This code should be using a ``string_file'' and not the TUI buffer hack. */ data->buffer = mem_fileopen (); return ui_out_new (&mi_ui_out_impl, data, flags); }
struct ui_out * tui_out_new (struct ui_file *stream) { int flags = 0; tui_out_data *data = XNEW (tui_out_data); /* Initialize base "class". */ cli_out_data_ctor (&data->base, stream); /* Initialize our fields. */ data->line = -1; data->start_of_line = 0; return ui_out_new (&tui_ui_out_impl, data, flags); }