Patchwork [07/19] Make tui_default_win_height static

login
register
mail settings
Submitter Tom Tromey
Date Aug. 3, 2019, 1:29 p.m.
Message ID <20190803132925.25074-8-tom@tromey.com>
Download mbox | patch
Permalink /patch/33934/
State New
Headers show

Comments

Tom Tromey - Aug. 3, 2019, 1:29 p.m.
tui_default_win_height is only used in tui-layout.c, so make it static.

gdb/ChangeLog
2019-08-03  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.
---
 gdb/ChangeLog        | 5 +++++
 gdb/tui/tui-layout.c | 2 +-
 gdb/tui/tui-layout.h | 2 --
 3 files changed, 6 insertions(+), 3 deletions(-)

Patch

diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 91db38404b3..f4f834dc83e 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 5f1993387be..a7e1e908983 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);