This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] Add missing arg to *_list_*()


FYI,

I'm not sure what I was thinking when I defined these functions.  This 
at least makes them match the *_tuple_*() versions.

    Andrew


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.

Index: ui-out.c
===================================================================
RCS file: /cvs/src/src/gdb/ui-out.c,v
retrieving revision 1.14
diff -p -r1.14 ui-out.c
*** ui-out.c	2001/06/11 16:34:47	1.14
--- ui-out.c	2001/06/12 16:14:18
*************** specified after table_body.");
*** 344,352 ****
  }
  
  void
! ui_out_list_begin (struct ui_out *uiout)
  {
!   ui_out_begin (uiout, ui_out_type_list, NULL);
  }
  
  void
--- 344,353 ----
  }
  
  void
! ui_out_list_begin (struct ui_out *uiout,
! 		   const char *id)
  {
!   ui_out_begin (uiout, ui_out_type_list, id);
  }
  
  void
*************** make_cleanup_ui_out_tuple_begin_end (str
*** 418,425 ****
  }
  
  struct cleanup *
! make_cleanup_ui_out_list_begin_end (struct ui_out *uiout)
  {
    return make_cleanup_ui_out_end (uiout, ui_out_type_list);
  }
  
--- 419,428 ----
  }
  
  struct cleanup *
! 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: ui-out.h
===================================================================
RCS file: /cvs/src/src/gdb/ui-out.h,v
retrieving revision 1.11
diff -p -r1.11 ui-out.h
*** ui-out.h	2001/06/11 16:34:47	1.11
--- ui-out.h	2001/06/12 16:14:18
*************** extern void ui_out_table_body (struct ui
*** 98,111 ****
  
  extern void ui_out_table_end (struct ui_out *uiout);
  
! /* Compatibility wrappers, new code should use ui_out_begin() and
!    ui_out_end(). */
  
! extern void ui_out_list_begin (struct ui_out *uiout);
  
  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 void ui_out_tuple_begin (struct ui_out *uiout, const char *id);
  
--- 98,111 ----
  
  extern void ui_out_table_end (struct ui_out *uiout);
  
! /* Compatibility wrappers.  */
  
! 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,
! 							   const char *id);
  
  extern void ui_out_tuple_begin (struct ui_out *uiout, const char *id);
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]