diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-17 17:15:23 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:42 -0600 |
commit | 17374de40e7be36e4eb27d29bb8aac89586ce4a1 (patch) | |
tree | 39a2f41ceb57c70963b937994e7da68cf2fed38c /gdb/tui/tui-wingeneral.h | |
parent | f936bca26dd7593a3b792e76eba37c5de2374961 (diff) | |
download | gdb-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-wingeneral.h')
-rw-r--r-- | gdb/tui/tui-wingeneral.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-wingeneral.h b/gdb/tui/tui-wingeneral.h index 15e61c9..e925606 100644 --- a/gdb/tui/tui-wingeneral.h +++ b/gdb/tui/tui-wingeneral.h @@ -32,7 +32,7 @@ extern void tui_make_visible (struct tui_gen_win_info *); extern void tui_make_invisible (struct tui_gen_win_info *); extern void tui_make_all_visible (void); extern void tui_make_all_invisible (void); -extern void tui_make_window (struct tui_gen_win_info *, int); +extern void tui_make_window (struct tui_gen_win_info *, enum tui_box); extern struct tui_win_info *tui_copy_win (struct tui_win_info *); extern void tui_box_win (struct tui_gen_win_info *, int); extern void tui_highlight_win (struct tui_win_info *); |