aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-layout.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-17 17:15:23 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:42 -0600
commit17374de40e7be36e4eb27d29bb8aac89586ce4a1 (patch)
tree39a2f41ceb57c70963b937994e7da68cf2fed38c /gdb/tui/tui-layout.c
parentf936bca26dd7593a3b792e76eba37c5de2374961 (diff)
downloadgdb-17374de40e7be36e4eb27d29bb8aac89586ce4a1.zip
gdb-17374de40e7be36e4eb27d29bb8aac89586ce4a1.tar.gz
gdb-17374de40e7be36e4eb27d29bb8aac89586ce4a1.tar.bz2
Introduce enum tui_box
This adds a new enum to the TUI, replacing two #define constants, providing better type safety. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it" parameter. * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it" parameter. (tui_gen_win_info::make_visible): Update. * tui/tui-layout.c (init_and_make_win): Change type of "box_it" parameter. * tui/tui-data.h (enum tui_box): New enum. (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
Diffstat (limited to 'gdb/tui/tui-layout.c')
-rw-r--r--gdb/tui/tui-layout.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 695fa35..6507b06 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -45,7 +45,8 @@
static void show_layout (enum tui_layout_type);
static tui_gen_win_info *init_and_make_win (tui_gen_win_info *,
enum tui_win_type,
- int, int, int, int, int);
+ int, int, int, int,
+ enum tui_box);
static void show_source_or_disasm_and_command (enum tui_layout_type);
static struct tui_win_info *make_source_or_disasm_window (enum tui_win_type,
int, int);
@@ -793,7 +794,7 @@ init_and_make_win (tui_gen_win_info *win_info,
enum tui_win_type win_type,
int height, int width,
int origin_x, int origin_y,
- int box_it)
+ enum tui_box box_it)
{
if (win_info == NULL)
{