diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-24 15:43:40 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-09-20 13:49:08 -0600 |
commit | 9abd8a65c1298258c005af3f80bdc4da9726ee05 (patch) | |
tree | 94c716e06fccfeb726d6ca732f02d02b4f57e042 /gdb/tui/tui-win.c | |
parent | b5457826744f08208a4c29addbbc26c7c877c485 (diff) | |
download | gdb-9abd8a65c1298258c005af3f80bdc4da9726ee05.zip gdb-9abd8a65c1298258c005af3f80bdc4da9726ee05.tar.gz gdb-9abd8a65c1298258c005af3f80bdc4da9726ee05.tar.bz2 |
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 <tom@tromey.com>
* 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.
Diffstat (limited to 'gdb/tui/tui-win.c')
-rw-r--r-- | gdb/tui/tui-win.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 (); |