diff options
author | Tom Tromey <tom@tromey.com> | 2021-12-30 09:46:02 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-26 15:19:13 -0700 |
commit | 6c92c339539ec87dc12783e9c8f1688a4a370c03 (patch) | |
tree | 5f3d0621646cae14436ab8e63edcf3542c236f86 /gdb/p-typeprint.c | |
parent | bbea68079781ac4c2fc941867ee9888585cafb77 (diff) | |
download | gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.zip gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.tar.gz gdb-6c92c339539ec87dc12783e9c8f1688a4a370c03.tar.bz2 |
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.
Diffstat (limited to 'gdb/p-typeprint.c')
-rw-r--r-- | gdb/p-typeprint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index 3450836..a105d29 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -287,7 +287,7 @@ pascal_language::print_func_args (struct type *type, struct ui_file *stream, if (i > 0) { fputs_filtered (", ", stream); - wrap_here (" "); + wrap_here (4); } /* Can we find if it is a var parameter ?? if ( TYPE_FIELD(type, i) == ) @@ -419,7 +419,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int section_type; QUIT; - wrap_here (" "); + wrap_here (4); if (type == NULL) { fputs_styled ("<type unknown>", metadata_style.style (), stream); @@ -487,7 +487,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int fprintf_filtered (stream, "case <?> of "); struct_union: - wrap_here (" "); + wrap_here (4); if (show < 0) { /* If we just printed a tag name, no need to print anything else. */ @@ -692,7 +692,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int /* enum is just defined by type enume_name = (enum_member1,enum_member2,...) */ fprintf_filtered (stream, " = "); - wrap_here (" "); + wrap_here (4); if (show < 0) { /* If we just printed a tag name, no need to print anything else. */ @@ -709,7 +709,7 @@ pascal_language::type_print_base (struct type *type, struct ui_file *stream, int QUIT; if (i) fprintf_filtered (stream, ", "); - wrap_here (" "); + wrap_here (4); fputs_filtered (type->field (i).name (), stream); if (lastval != type->field (i).loc_enumval ()) { |