forked from Imagelibrary/binutils-gdb
Always call the wrap_here method
This changes all existing calls to wrap_here to call the method on the appropriate ui_file instead. The choice of ui_file is determined by context.
This commit is contained in:
@@ -79,7 +79,7 @@ m2_print_type (struct type *type, const char *varstring,
|
||||
|
||||
QUIT;
|
||||
|
||||
wrap_here (4);
|
||||
stream->wrap_here (4);
|
||||
if (type == NULL)
|
||||
{
|
||||
fputs_styled (_("<type unknown>"), metadata_style.style (), stream);
|
||||
@@ -292,7 +292,7 @@ m2_procedure (struct type *type, struct ui_file *stream,
|
||||
if (i > 0)
|
||||
{
|
||||
fputs_filtered (", ", stream);
|
||||
wrap_here (4);
|
||||
stream->wrap_here (4);
|
||||
}
|
||||
m2_print_type (type->field (i).type (), "", stream, -1, 0, flags);
|
||||
}
|
||||
@@ -539,7 +539,7 @@ m2_record_fields (struct type *type, struct ui_file *stream, int show,
|
||||
fprintf_filtered (stream, " = ");
|
||||
}
|
||||
}
|
||||
wrap_here (4);
|
||||
stream->wrap_here (4);
|
||||
if (show < 0)
|
||||
{
|
||||
if (type->code () == TYPE_CODE_STRUCT)
|
||||
@@ -608,7 +608,7 @@ m2_enum (struct type *type, struct ui_file *stream, int show, int level)
|
||||
QUIT;
|
||||
if (i > 0)
|
||||
fprintf_filtered (stream, ", ");
|
||||
wrap_here (4);
|
||||
stream->wrap_here (4);
|
||||
fputs_styled (type->field (i).name (),
|
||||
variable_name_style.style (), stream);
|
||||
if (lastval != type->field (i).loc_enumval ())
|
||||
|
||||
Reference in New Issue
Block a user