aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-data.h
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-data.h
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-data.h')
-rw-r--r--gdb/tui/tui-data.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index 9c45d6f..95c9161 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -91,6 +91,13 @@ struct tui_gen_win_info
char *title = nullptr;
};
+/* Whether or not a window should be drawn with a box. */
+enum tui_box
+{
+ DONT_BOX_WINDOW = 0,
+ BOX_WINDOW
+};
+
/* Constant definitions. */
#define DEFAULT_TAB_LEN 8
#define NO_SRC_STRING "[ No Source Available ]"
@@ -104,8 +111,6 @@ struct tui_gen_win_info
#define DISASSEM_NAME "asm"
#define TUI_NULL_STR ""
#define DEFAULT_HISTORY_COUNT 25
-#define BOX_WINDOW TRUE
-#define DONT_BOX_WINDOW FALSE
#define HILITE TRUE
#define NO_HILITE FALSE
#define WITH_LOCATOR TRUE