aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 14:24:42 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:33 -0600
commit56122977c04496325ca9d83231e7751ab94d6b14 (patch)
treea36cabdadf9edbde307a83288bd36c77723ed716 /gdb/tui/tui.h
parentcda37efbffb63e2634ea0600fdad2de6a8f9f3ad (diff)
downloadgdb-56122977c04496325ca9d83231e7751ab94d6b14.zip
gdb-56122977c04496325ca9d83231e7751ab94d6b14.tar.gz
gdb-56122977c04496325ca9d83231e7751ab94d6b14.tar.bz2
Use bool for visibility
This changes the visibility-related functions and data members in the TUI to use bool rather than int. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui.h (tui_is_window_visible): Return bool. * tui/tui.c (tui_is_window_visible): Return bool. * tui/tui-wingeneral.c (tui_make_window, make_visible) (tui_make_visible, tui_make_invisible) (tui_win_info::make_visible) (tui_source_window_base::make_visible, make_all_visible) (tui_make_all_visible, tui_make_all_invisible): Update. * tui/tui-windata.c (tui_delete_data_content_windows): Update. * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now bool. (struct tui_win_info, struct tui_source_window_base) (struct tui_cmd_window) <make_visible>: Change parameter to bool. * tui/tui-data.c (tui_init_generic_part): Update.
Diffstat (limited to 'gdb/tui/tui.h')
-rw-r--r--gdb/tui/tui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui.h b/gdb/tui/tui.h
index 5b8be0c..8f6ef64 100644
--- a/gdb/tui/tui.h
+++ b/gdb/tui/tui.h
@@ -56,7 +56,7 @@ enum tui_win_type
extern CORE_ADDR tui_get_low_disassembly_address (struct gdbarch *,
CORE_ADDR, CORE_ADDR);
extern void tui_show_assembly (struct gdbarch *gdbarch, CORE_ADDR addr);
-extern int tui_is_window_visible (enum tui_win_type type);
+extern bool tui_is_window_visible (enum tui_win_type type);
extern int tui_get_command_dimension (unsigned int *width,
unsigned int *height);