From 9abd8a65c1298258c005af3f80bdc4da9726ee05 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 24 Jul 2019 15:43:40 -0600 Subject: Change "win_resized" to bool This changes the "win_resized" global to be a bool and then updates the uses. gdb/ChangeLog 2019-09-20 Tom Tromey * tui/tui.c (tui_enable): Update. * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen): Update. * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to): Update. * tui/tui-data.c (win_resized): Now bool. (tui_win_resized): Return bool. (tui_set_win_resized_to): Accept a bool. --- gdb/tui/tui-win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/tui/tui-win.c') diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index bf84cda..d07a777 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -664,7 +664,7 @@ static void tui_sigwinch_handler (int signal) { mark_async_signal_handler (tui_sigwinch_token); - tui_set_win_resized_to (TRUE); + tui_set_win_resized_to (true); } /* Callback for asynchronously resizing TUI following a SIGWINCH signal. */ @@ -685,7 +685,7 @@ tui_async_resize_screen (gdb_client_data arg) } else { - tui_set_win_resized_to (FALSE); + tui_set_win_resized_to (false); tui_resize_all (); tui_refresh_all_win (); tui_update_gdb_sizes (); -- cgit v1.1