From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70561 invoked by alias); 20 Sep 2019 20:07:08 -0000 Mailing-List: contact gdb-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: gdb-cvs-owner@sourceware.org List-Subscribe: Sender: gdb-cvs-owner@sourceware.org Received: (qmail 70543 invoked by uid 306); 20 Sep 2019 20:07:08 -0000 Date: Fri, 20 Sep 2019 20:07:00 -0000 Message-ID: <20190920200708.70542.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove strcat_to_buf X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 7226433c44e3792aeea6ad19c54cd3056ea4308e X-Git-Newrev: 43df9b2fccc347e95f882519332592a826d72d11 X-SW-Source: 2019-09/txt/msg00090.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=43df9b2fccc347e95f882519332592a826d72d11 commit 43df9b2fccc347e95f882519332592a826d72d11 Author: Tom Tromey Date: Mon Sep 2 09:07:02 2019 -0600 Remove strcat_to_buf An earlier patch in the series removed the last call to strcat_to_buf, so this patch removes the function entirely. gdb/ChangeLog 2019-09-20 Tom Tromey * tui/tui.h (strcat_to_buf): Don't declare. * tui/tui.c (strcat_to_buf): Remove. Diff: --- gdb/ChangeLog | 5 +++++ gdb/tui/tui.c | 13 ------------- gdb/tui/tui.h | 2 -- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3b2fdd2..ba434dd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2019-09-20 Tom Tromey + * tui/tui.h (strcat_to_buf): Don't declare. + * tui/tui.c (strcat_to_buf): Remove. + +2019-09-20 Tom Tromey + * tui/tui-source.h (struct tui_source_window) : Rename from "fullname". * tui/tui-source.c (tui_source_window::set_contents) diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 966304f..30bf548 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -570,19 +570,6 @@ tui_disable_command (const char *args, int from_tty) tui_disable (); } -void -strcat_to_buf (char *buf, int buflen, - const char *item_to_add) -{ - if (item_to_add != NULL && buf != NULL) - { - if ((strlen (buf) + strlen (item_to_add)) <= buflen) - strcat (buf, item_to_add); - else - strncat (buf, item_to_add, (buflen - strlen (buf))); - } -} - #if 0 /* Solaris defines CTRL. */ #ifndef CTRL diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h index 25ae0c5..baf4a81 100644 --- a/gdb/tui/tui.h +++ b/gdb/tui/tui.h @@ -24,8 +24,6 @@ struct ui_file; -extern void strcat_to_buf (char *, int, const char *); - /* Types of error returns. */ enum tui_status {