mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 11:33:45 +08:00
Output ``[...]'' when a list.
This commit is contained in:
parent
02649152cc
commit
5a9aa5dc6f
@ -1,3 +1,7 @@
|
||||
2001-05-12 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* mi-out.c (mi_close, mi_open): Output ``[]'' when a list.
|
||||
|
||||
Fri May 11 13:55:07 2001 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* mi-cmd-var.c: Replace ui_out_list_begin, ui_out_list_end and
|
||||
|
@ -307,7 +307,17 @@ mi_open (struct ui_out *uiout,
|
||||
enum ui_out_type type)
|
||||
{
|
||||
struct ui_out_data *data = ui_out_data (uiout);
|
||||
fputc_unfiltered ('{', data->buffer);
|
||||
switch (type)
|
||||
{
|
||||
case ui_out_type_tuple:
|
||||
fputc_unfiltered ('{', data->buffer);
|
||||
break;
|
||||
case ui_out_type_list:
|
||||
fputc_unfiltered ('[', data->buffer);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
@ -315,7 +325,17 @@ mi_close (struct ui_out *uiout,
|
||||
enum ui_out_type type)
|
||||
{
|
||||
struct ui_out_data *data = ui_out_data (uiout);
|
||||
fputc_unfiltered ('}', data->buffer);
|
||||
switch (type)
|
||||
{
|
||||
case ui_out_type_tuple:
|
||||
fputc_unfiltered ('}', data->buffer);
|
||||
break;
|
||||
case ui_out_type_list:
|
||||
fputc_unfiltered (']', data->buffer);
|
||||
break;
|
||||
default:
|
||||
internal_error (__FILE__, __LINE__, "bad switch");
|
||||
}
|
||||
}
|
||||
|
||||
/* add a string to the buffer */
|
||||
|
Loading…
Reference in New Issue
Block a user