diff options
author | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:12 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-07-01 21:21:17 -0600 |
commit | 32c1e2100975c073b3c1d9e2041de9f74b6e2049 (patch) | |
tree | 6a8287214e60beafd26e079057083fa2b61d6d93 /gdb/tui/tui-layout.h | |
parent | a30cb6dabb20e26dc80b0952ae709613372359f8 (diff) | |
download | binutils-32c1e2100975c073b3c1d9e2041de9f74b6e2049.zip binutils-32c1e2100975c073b3c1d9e2041de9f74b6e2049.tar.gz binutils-32c1e2100975c073b3c1d9e2041de9f74b6e2049.tar.bz2 |
Remove tui_gen_win_info
This merges the tui_gen_win_info base class with tui_win_info;
renaming the resulting class to tui_win_info.
gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
tui_gen_win_info.
(tui_win_info::make_window): Merge with
tui_gen_win_info::make_window.
(tui_win_info::make_visible): Move from tui_gen_win_info.
* tui/tui-win.c (tui_win_info::max_width): Move from
tui_gen_win_info.
* tui/tui-layout.h (class tui_layout_window) <m_window>: Change
type.
<window_factory>: Likewise.
* tui/tui-layout.c (tui_win_info::resize): Move from
tui_gen_win_info.
(make_standard_window): Change return type.
(get_locator_window, tui_get_window_by_name): Likewise.
(tui_layout_window::apply): Remove a cast.
* tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
(struct tui_win_info): Merge with tui_gen_win_info.
(struct tui_gen_win_info): Remove.
Diffstat (limited to 'gdb/tui/tui-layout.h')
-rw-r--r-- | gdb/tui/tui-layout.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-layout.h b/gdb/tui/tui-layout.h index 9061837..ee4caf8 100644 --- a/gdb/tui/tui-layout.h +++ b/gdb/tui/tui-layout.h @@ -152,7 +152,7 @@ private: /* When a layout is applied, this is updated to point to the window object. */ - tui_gen_win_info *m_window = nullptr; + tui_win_info *m_window = nullptr; }; /* A TUI layout that holds other layouts. */ @@ -251,7 +251,7 @@ extern void tui_adjust_window_height (struct tui_win_info *win, /* The type of a function that is used to create a TUI window. */ -typedef std::function<tui_gen_win_info * (const char *name)> window_factory; +typedef std::function<tui_win_info * (const char *name)> window_factory; /* Register a new TUI window type. NAME is the name of the window type. FACTORY is a function that can be called to instantiate the |