Introduce max_height method
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 21:16:52 +0000 (15:16 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:35 +0000 (07:48 -0600)
commit8903bd8a37f905f5d77d2e04219e1a1eddaa6133
tree18b361687cd3700d12e228b3e7c704b212a01e9e
parent3f02ce1e3df15731872befd2e711854b2b259745
Introduce max_height method

This introduces the tui_win_info::max_height method and changes
new_height_ok to use it, rather than checking the window type
directly.

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

* tui/tui-win.c (tui_win_info::max_height)
(tui_cmd_window::max_height): New methods.
(new_height_ok): Call max_height.
* tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
<max_height>: New method.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-win.c