aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-05 12:35:08 -0600
committerTom Tromey <tom@tromey.com>2019-08-13 14:52:09 -0600
commit16cb7910b946bad4b5f4aa69925361004c4e412f (patch)
tree56ade820d72f698b7776ad884e903a2a872ea3cc /gdb/tui
parentcc0c3ffbc975fe764f6c4746611a836e7a4ce379 (diff)
downloadgdb-16cb7910b946bad4b5f4aa69925361004c4e412f.zip
gdb-16cb7910b946bad4b5f4aa69925361004c4e412f.tar.gz
gdb-16cb7910b946bad4b5f4aa69925361004c4e412f.tar.bz2
Make tui_default_win_height static
tui_default_win_height is only used in tui-layout.c, so make it static. gdb/ChangeLog 2019-08-13 Tom Tromey <tom@tromey.com> * tui/tui-layout.h (tui_default_win_height): Don't declare. * tui/tui-layout.c (tui_default_win_height): Now static.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-layout.c2
-rw-r--r--gdb/tui/tui-layout.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 91db384..f4f834dc 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -254,7 +254,7 @@ tui_add_win_to_layout (enum tui_win_type type)
/* Answer the height of a window. If it hasn't been created yet,
answer what the height of a window would be based upon its type and
the layout. */
-int
+static int
tui_default_win_height (enum tui_win_type type,
enum tui_layout_type layout)
{
diff --git a/gdb/tui/tui-layout.h b/gdb/tui/tui-layout.h
index 5f19933..a7e1e90 100644
--- a/gdb/tui/tui-layout.h
+++ b/gdb/tui/tui-layout.h
@@ -26,8 +26,6 @@
#include "tui/tui-data.h"
extern void tui_add_win_to_layout (enum tui_win_type);
-extern int tui_default_win_height (enum tui_win_type,
- enum tui_layout_type);
extern int tui_default_win_viewport_height (enum tui_win_type,
enum tui_layout_type);
extern void tui_set_layout (enum tui_layout_type);