public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Remove declaration of tui_set_var_cmd, make definition static
@ 2019-11-26 19:49 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2019-11-26 19:49 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3b5c1d49e09cd44ef772801f3365d0cbdc4673ee
commit 3b5c1d49e09cd44ef772801f3365d0cbdc4673ee
Author: Simon Marchi <simon.marchi@efficios.com>
Date: Tue Nov 26 12:12:03 2019 -0500
Remove declaration of tui_set_var_cmd, make definition static
The declaration of tui_set_var_cmd is not in sync with the definition.
Since tui_set_var_cmd is only used in the file where it's defined,
remove the declaration and make the definition static.
gdb/ChangeLog:
* tui-win.h (tui_set_var_cmd): Remove.
* tui-win.c (tui_set_var_cmd): Make static.
Change-Id: If4bddbfb573347fb7254fb6f1a940052a72f464f
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/tui/tui-win.c | 3 ++-
gdb/tui/tui-win.h | 3 ---
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 40403fb..ad4ea44 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-11-26 Simon Marchi <simon.marchi@efficios.com>
+ * tui-win.h (tui_set_var_cmd): Remove.
+ * tui-win.c (tui_set_var_cmd): Make static.
+
+2019-11-26 Simon Marchi <simon.marchi@efficios.com>
+
* breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
rbreak_command_wrapper): Remove.
* symtab.c (rbreak_command_wrapper): Remove.
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index c8d36c7..f47dad8 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -334,7 +334,8 @@ tui_get_cmd_list (void)
/* The set_func hook of "set tui ..." commands that affect the window
borders on the TUI display. */
-void
+
+static void
tui_set_var_cmd (const char *null_args,
int from_tty, struct cmd_list_element *c)
{
diff --git a/gdb/tui/tui-win.h b/gdb/tui/tui-win.h
index e97eb67..81b7dac 100644
--- a/gdb/tui/tui-win.h
+++ b/gdb/tui/tui-win.h
@@ -54,7 +54,4 @@ extern void tui_update_gdb_sizes (void);
/* Create or get the TUI command list. */
struct cmd_list_element **tui_get_cmd_list (void);
-/* Set a TUI variable. */
-void tui_set_var_cmd (char *, int, struct cmd_list_element *);
-
#endif /* TUI_TUI_WIN_H */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-26 19:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 19:49 [binutils-gdb] Remove declaration of tui_set_var_cmd, make definition static Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).