From f2dda4778417e2d58a5b0416ff9598f68470cbfa Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 6 Jul 2019 11:32:06 -0600 Subject: Move locator code to tui-stack.c The locator is mostly implemented in tui-stack.c. This moves the remaining bits to tui-stack.c and tui-stack.h, as appropriate. gdb/ChangeLog 2019-08-15 Tom Tromey * tui/tui-wingeneral.c: Include tui-stack.h. * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN) (struct tui_locator_window): Move from tui-data.h. * tui/tui-stack.c (_locator, tui_locator_win_info_ptr) (tui_initialize_static_data): Move from tui-data.c. * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN) (struct tui_locator_window): Move to tui-stack.c. * tui/tui-data.c (_locator, tui_locator_win_info_ptr) (tui_initialize_static_data): Move to tui-stack.c. --- gdb/tui/tui-data.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'gdb/tui/tui-data.c') diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index add1f33..c308237 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -36,7 +36,6 @@ struct tui_win_info *tui_win_list[MAX_MAJOR_WINDOWS]; ** Private data ****************************/ static int term_height, term_width; -static struct tui_locator_window _locator; static std::vector source_windows; static struct tui_win_info *win_with_focus = NULL; @@ -128,15 +127,6 @@ tui_add_to_source_windows (struct tui_source_window_base *win_info) source_windows.push_back (win_info); } -/* Accessor for the locator win info. Answers a pointer to the static - locator win info struct. */ -struct tui_locator_window * -tui_locator_win_info_ptr (void) -{ - return &_locator; -} - - /* Accessor for the term_height. */ int tui_term_height (void) @@ -253,21 +243,6 @@ tui_partial_win_by_name (const char *name) return NULL; } - -void -tui_initialize_static_data () -{ - tui_gen_win_info *win = tui_locator_win_info_ptr (); - win->width = - win->height = - win->origin.x = - win->origin.y = - win->viewport_height = 0; - win->handle = NULL; - win->is_visible = false; - win->title = 0; -} - /* See tui-data.h. */ void -- cgit v1.1