(make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
* ui-out.h: Update declarations.
+2001-06-12 Andrew Cagney <ac131313@redhat.com>
+
+ * ui-out.c (ui_out_list_begin): Add parameter ``id''.
+ (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
+ * ui-out.h: Update declarations.
+
Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
* source.c (openp): Make parameters ``path'' and ``string''
}
void
-ui_out_list_begin (struct ui_out *uiout)
+ui_out_list_begin (struct ui_out *uiout,
+ const char *id)
{
- ui_out_begin (uiout, ui_out_type_list, NULL);
+ ui_out_begin (uiout, ui_out_type_list, id);
}
void
}
struct cleanup *
-make_cleanup_ui_out_list_begin_end (struct ui_out *uiout)
+make_cleanup_ui_out_list_begin_end (struct ui_out *uiout,
+ const char *id)
{
+ ui_out_list_begin (uiout, id);
return make_cleanup_ui_out_end (uiout, ui_out_type_list);
}
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);