void mi_table_begin (struct ui_out *uiout, int nr_cols, int nr_rows, const char *tblid) { mi_out_data *data = ui_out_data (uiout); mi_open (uiout, tblid, ui_out_type_tuple); mi_field_int (uiout, -1/*fldno*/, -1/*width*/, -1/*alin*/, "nr_rows", nr_rows); mi_field_int (uiout, -1/*fldno*/, -1/*width*/, -1/*alin*/, "nr_cols", nr_cols); mi_open (uiout, "hdr", ui_out_type_list); }
void mi_table_header (struct ui_out *uiout, int width, enum ui_align alignment, const char *col_name, const char *colhdr) { mi_out_data *data = ui_out_data (uiout); if (data->suppress_output) return; mi_open (uiout, NULL, ui_out_type_tuple); mi_field_int (uiout, 0, 0, 0, "width", width); mi_field_int (uiout, 0, 0, 0, "alignment", alignment); mi_field_string (uiout, 0, 0, 0, "col_name", col_name); mi_field_string (uiout, 0, width, alignment, "colhdr", colhdr); mi_close (uiout, ui_out_type_tuple); }
void mi_table_begin (struct ui_out *uiout, int nr_cols, int nr_rows, const char *tblid) { struct ui_out_data *data = ui_out_data (uiout); mi_open (uiout, tblid, ui_out_type_tuple); if (data->mi_version == 0) { if (nr_rows == 0) data->suppress_output = 1; else mi_open (uiout, "hdr", ui_out_type_list); return; } mi_field_int (uiout, -1/*fldno*/, -1/*width*/, -1/*alin*/, "nr_rows", nr_rows); mi_field_int (uiout, -1/*fldno*/, -1/*width*/, -1/*alin*/, "nr_cols", nr_cols); mi_open (uiout, "hdr", ui_out_type_list); }