+2016-12-02 Simon Marchi <simon.marchi@ericsson.com>
+
+ * mi/mi-out.c (mi_ui_out_data) <suppress_output>: Remove.
+ (mi_table_body): Remove suppress_output check.
+ (mi_table_end): Likewise.
+ (mi_table_header): Likewise.
+ (mi_begin): Likewise.
+ (mi_end): Likewise.
+ (mi_field_int): Likewise.
+ (mi_field_string): Likewise.
+ (mi_field_fmt): Likewise.
+ (mi_out_data_ctor): Likewise.
+
2016-12-02 Yao Qi <yao.qi@linaro.org>
Pedro Alves <palves@redhat.com>
struct mi_ui_out_data
{
int suppress_field_separator;
- int suppress_output;
int mi_version;
std::vector<ui_file *> streams;
};
{
mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
- if (data->suppress_output)
- return;
/* close the table header line if there were any headers */
mi_close (uiout, ui_out_type_list);
mi_open (uiout, "body", ui_out_type_list);
{
mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
- data->suppress_output = 0;
mi_close (uiout, ui_out_type_list); /* body */
mi_close (uiout, ui_out_type_tuple);
}
{
mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
- if (data->suppress_output)
- return;
-
mi_open (uiout, NULL, ui_out_type_tuple);
mi_field_int (uiout, 0, 0, ui_center, "width", width);
mi_field_int (uiout, 0, 0, ui_center, "alignment", alignment);
{
mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
- if (data->suppress_output)
- return;
-
mi_open (uiout, id, type);
}
{
mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
- if (data->suppress_output)
- return;
-
mi_close (uiout, type);
}
char buffer[20]; /* FIXME: how many chars long a %d can become? */
mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
- if (data->suppress_output)
- return;
-
xsnprintf (buffer, sizeof (buffer), "%d", value);
mi_field_string (uiout, fldno, width, alignment, fldname, buffer);
}
mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
struct ui_file *stream;
- if (data->suppress_output)
- return;
-
stream = data->streams.back ();
field_separator (uiout);
if (fldname)
mi_out_data *data = (mi_out_data *) ui_out_data (uiout);
struct ui_file *stream;
- if (data->suppress_output)
- return;
-
stream = data->streams.back ();
field_separator (uiout);
if (fldname)
self->streams.push_back (stream);
self->suppress_field_separator = 0;
- self->suppress_output = 0;
self->mi_version = mi_version;
}