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:
Tom Tromey
2021-12-30 09:46:02 -07:00
parent bbea680797
commit 6c92c33953
37 changed files with 122 additions and 146 deletions

View File

@@ -178,7 +178,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr,
fprintf_filtered (stream, "\n");
print_spaces_filtered (2 + 2 * recurse, stream);
}
wrap_here (n_spaces (2 + 2 * recurse));
wrap_here (2 + 2 * recurse);
maybe_print_array_index (index_type, i + low, stream, options);
i0 = i;
@@ -235,7 +235,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr,
{
fprintf_filtered (stream, ", ");
}
wrap_here (n_spaces (2 + 2 * recurse));
wrap_here (2 + 2 * recurse);
maybe_print_array_index (index_type, j + low,
stream, options);
}
@@ -614,7 +614,7 @@ print_field_values (struct value *value, struct value *outer_value,
}
else
{
wrap_here (n_spaces (2 + 2 * recurse));
wrap_here (2 + 2 * recurse);
}
annotate_field_begin (type->field (i).type ());