forked from Imagelibrary/binutils-gdb
Convert wrap_here to use integer parameter
I think it only really makes sense to call wrap_here with an argument consisting solely of spaces. Given this, it seemed better to me that the argument be an int, rather than a string. This patch is the result. Much of it was written by a script.
This commit is contained in:
@@ -79,7 +79,7 @@ m2_print_type (struct type *type, const char *varstring,
|
||||
|
||||
QUIT;
|
||||
|
||||
wrap_here (" ");
|
||||
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 (" ");
|
||||
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 (" ");
|
||||
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 (" ");
|
||||
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