]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ui-out.c (ui_out_list_begin): Add parameter ``id''.
authorAndrew Cagney <cagney@redhat.com>
Tue, 12 Jun 2001 16:44:36 +0000 (16:44 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 12 Jun 2001 16:44:36 +0000 (16:44 +0000)
(make_cleanup_ui_out_list_begin_end): Ditto.  Open the list.
* ui-out.h: Update declarations.

gdb/ChangeLog
gdb/ui-out.c
gdb/ui-out.h

index 6c35cb5a968c75edcdd433c99b3c1dac522711f9..2ead54f4b8f88336008dd7437ab8b9fb0412bd7d 100644 (file)
@@ -1,3 +1,9 @@
+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''
index 40e126e6e64f623ec1b7860d4d9f1c7bd9d2cf72..8d60d60ef7a1ac94b72509e18434dd1d4d3f4e08 100644 (file)
@@ -344,9 +344,10 @@ specified after table_body.");
 }
 
 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
@@ -418,8 +419,10 @@ make_cleanup_ui_out_tuple_begin_end (struct ui_out *uiout,
 }
 
 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);
 }
 
index cc7ddaca51eee8ea7e2f9247e90906276069d3d8..3abf6ab320733159c8d4b30408b2d919281b9a06 100644 (file)
@@ -98,14 +98,14 @@ extern void ui_out_table_body (struct ui_out *uiout);
 
 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);