mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
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 <tom@tromey.com> * tui/tui.h (strcat_to_buf): Don't declare. * tui/tui.c (strcat_to_buf): Remove.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2019-09-20 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* tui/tui.h (strcat_to_buf): Don't declare.
|
||||||
|
* tui/tui.c (strcat_to_buf): Remove.
|
||||||
|
|
||||||
2019-09-20 Tom Tromey <tom@tromey.com>
|
2019-09-20 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
|
* tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
|
||||||
|
@ -570,19 +570,6 @@ tui_disable_command (const char *args, int from_tty)
|
|||||||
tui_disable ();
|
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
|
#if 0
|
||||||
/* Solaris <sys/termios.h> defines CTRL. */
|
/* Solaris <sys/termios.h> defines CTRL. */
|
||||||
#ifndef CTRL
|
#ifndef CTRL
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
|
|
||||||
struct ui_file;
|
struct ui_file;
|
||||||
|
|
||||||
extern void strcat_to_buf (char *, int, const char *);
|
|
||||||
|
|
||||||
/* Types of error returns. */
|
/* Types of error returns. */
|
||||||
enum tui_status
|
enum tui_status
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user