From 6c92c339539ec87dc12783e9c8f1688a4a370c03 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 30 Dec 2021 09:46:02 -0700 Subject: 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. --- gdb/mi/mi-out.c | 4 ++-- gdb/mi/mi-out.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 20c6f0f..72ae36d 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -172,9 +172,9 @@ mi_ui_out::do_message (const ui_file_style &style, } void -mi_ui_out::do_wrap_hint (const char *identstring) +mi_ui_out::do_wrap_hint (int indent) { - wrap_here (identstring); + wrap_here (indent); } void diff --git a/gdb/mi/mi-out.h b/gdb/mi/mi-out.h index 1b7fa96..8f2f2d8 100644 --- a/gdb/mi/mi-out.h +++ b/gdb/mi/mi-out.h @@ -76,7 +76,7 @@ protected: virtual void do_message (const ui_file_style &style, const char *format, va_list args) override ATTRIBUTE_PRINTF (3,0); - virtual void do_wrap_hint (const char *identstring) override; + virtual void do_wrap_hint (int indent) override; virtual void do_flush () override; virtual void do_redirect (struct ui_file *outstream) override; -- cgit v1.1