enum ui_out_type level_type,
const char *id);
-/* A table can be considered a special tuple/list combination with
- the implied structure: ``table = { hdr = { header, ... } , body = [ {
- field, ... }, ... ] }'' */
+/* A table can be considered a special tuple/list combination with the
+ implied structure: ``table = { hdr = { header, ... } , body = [ {
+ field, ... }, ... ] }''. If NR_ROWS is negative then there is at
+ least one row. */
extern void ui_out_table_begin (struct ui_out *uiout, int nbrofcols,
- const char *tblid);
+ int nr_rows, const char *tblid);
extern void ui_out_table_header (struct ui_out *uiout, int width,
enum ui_align align, const char *colhdr);
extern void ui_out_table_end (struct ui_out *uiout);
-/* Compatibility wrappers, new code should use ui_out_begin() and
- ui_out_end(). */
+/* Compatibility wrappers. */
-extern void ui_out_list_begin (struct ui_out *uiout);
+extern void ui_out_list_begin (struct ui_out *uiout, const char *id);
extern void ui_out_list_end (struct ui_out *uiout);
-extern struct cleanup *make_cleanup_ui_out_list_begin_end (struct ui_out *uiout);
+extern struct cleanup *make_cleanup_ui_out_list_begin_end (struct ui_out *uiout,
+ const char *id);
extern void ui_out_tuple_begin (struct ui_out *uiout, const char *id);
/* Type definition of all implementation functions. */
typedef void (table_begin_ftype) (struct ui_out * uiout,
- int nbrofcols, const char *tblid);
+ int nbrofcols, int nr_rows,
+ const char *tblid);
typedef void (table_body_ftype) (struct ui_out * uiout);
typedef void (table_end_ftype) (struct ui_out * uiout);
typedef void (table_header_ftype) (struct ui_out * uiout, int width,