Introduce set_highlight method
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 21:28:03 +0000 (15:28 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:36 +0000 (07:48 -0600)
commit214a5cbea656f3ffc1e7e525627c56849347c709
tree134f77046a642e2278612c67220a000feee4a627
parent8e2daf1532e587fee8d14aab1baad40e628065e2
Introduce set_highlight method

This introduces the tui_win_info::set_highlight method, and changes
the highlighting-related code to use bool rather than int.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
Update.
* tui/tui-layout.c (make_command_window)
(show_source_disasm_command, show_data, init_and_make_win)
(show_source_or_disasm_and_command): Update.
* tui/tui-data.h (struct tui_win_info) <set_highlight>: New
method.
<can_highight, is_highlighted>: Now bool.
(tui_set_win_highlight): Don't declare.
* tui/tui-data.c (tui_set_win_highlight): Remove.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-layout.c
gdb/tui/tui-wingeneral.c