2019-07-17 Tom Tromey <tom@tromey.com>
+ * tui/tui-windata.h (tui_delete_data_content_windows): Don't
+ declare.
+ * tui/tui-windata.c
+ (tui_data_window::delete_data_content_windows): Rename from
+ tui_delete_data_content_windows.
+ (tui_data_window::display_all_data)
+ (tui_data_window::do_scroll_vertical): Update.
+ * tui/tui-data.h (struct tui_data_window)
+ <delete_data_content_windows>: New method.
+
+2019-07-17 Tom Tromey <tom@tromey.com>
+
* tui/tui-windata.h (tui_refresh_data_win): Don't declare.
* tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
not set the content. */
void display_all_data ();
+ /* Delete all the item windows in the data window. This is usually
+ done when the data window is scrolled. */
+ void delete_data_content_windows ();
+
protected:
void do_scroll_vertical (int num_to_scroll) override;
return -1;
}
+/* See tui-data.h. */
-/* Function to delete all the item windows in the data window. This
- is usually done when the data window is scrolled. */
void
-tui_delete_data_content_windows (void)
+tui_data_window::delete_data_content_windows ()
{
- for (auto &&win : TUI_DATA_WIN->regs_content)
+ for (auto &&win : regs_content)
{
tui_delete_win (win->handle);
win->handle = NULL;
else
{
tui_erase_data_content (NULL);
- tui_delete_data_content_windows ();
+ delete_data_content_windows ();
tui_check_and_display_highlight_if_needed (this);
tui_display_registers_from (0);
}
{
first_line += num_to_scroll;
tui_erase_data_content (NULL);
- tui_delete_data_content_windows ();
+ delete_data_content_windows ();
tui_display_registers_from_line (first_line);
}
}
#include "tui/tui-data.h"
extern void tui_erase_data_content (const char *);
-extern void tui_delete_data_content_windows (void);
#endif /* TUI_TUI_WINDATA_H */