From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 3D09D3865C2A; Tue, 29 Mar 2022 19:43:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3D09D3865C2A Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Rename puts_filtered_tabular X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: d0b1020bf1f9f0e3824d61cd3821e3ea7773f828 X-Git-Newrev: 9fbf7f083e21263b0a0e1f76d615adaa4e13cfe5 Message-Id: <20220329194311.3D09D3865C2A@sourceware.org> Date: Tue, 29 Mar 2022 19:43:11 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2022 19:43:11 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D9fbf7f083e21= 263b0a0e1f76d615adaa4e13cfe5 commit 9fbf7f083e21263b0a0e1f76d615adaa4e13cfe5 Author: Tom Tromey Date: Sun Jan 2 11:54:06 2022 -0700 Rename puts_filtered_tabular =20 puts_filtered_tabular is now misnamed, because whether filtering happens is now up to the stream. So, rename it. (This function is pretty weird, and should probably be rewritten to avoid using the chars_printed global, and moved into objc-lang.c. However, I haven't done so.) Diff: --- gdb/objc-lang.c | 4 ++-- gdb/utils.c | 13 ++++++------- gdb/utils.h | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index e116fbe5611..ed13097f7a8 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -666,7 +666,7 @@ info_selectors_command (const char *regexp, int from_tt= y) *p++ =3D *name++; *p++ =3D '\0'; /* Print in columns. */ - puts_filtered_tabular(asel, maxlen + 1, 0); + puts_tabular(asel, maxlen + 1, 0); } begin_line(); } @@ -800,7 +800,7 @@ info_classes_command (const char *regexp, int from_tty) *p++ =3D *name++; *p++ =3D '\0'; /* Print in columns. */ - puts_filtered_tabular(aclass, maxlen + 1, 0); + puts_tabular(aclass, maxlen + 1, 0); } begin_line(); } diff --git a/gdb/utils.c b/gdb/utils.c index e358a5a560d..bf6f4fb9b89 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -1504,15 +1504,14 @@ pager_file::wrap_here (int indent) } } =20 -/* Print input string to gdb_stdout, filtered, with wrap,=20 - arranging strings in columns of n chars. String can be - right or left justified in the column. Never prints=20 - trailing spaces. String should never be longer than - width. FIXME: this could be useful for the EXAMINE=20 - command, which currently doesn't tabulate very well. */ +/* Print input string to gdb_stdout arranging strings in columns of n + chars. String can be right or left justified in the column. Never + prints trailing spaces. String should never be longer than width. + FIXME: this could be useful for the EXAMINE command, which + currently doesn't tabulate very well. */ =20 void -puts_filtered_tabular (char *string, int width, int right) +puts_tabular (char *string, int width, int right) { int spaces =3D 0; int stringlen; diff --git a/gdb/utils.h b/gdb/utils.h index 981090e3019..8b7eccb7bb3 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -241,7 +241,7 @@ extern int gdb_putc (int c); =20 extern void gdb_puts (const char *); =20 -extern void puts_filtered_tabular (char *string, int width, int right); +extern void puts_tabular (char *string, int width, int right); =20 extern void gdb_vprintf (const char *, va_list) ATTRIBUTE_PRINTF (1, 0);