diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-27 16:04:26 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-07-17 12:19:03 -0600 |
commit | 1ce3e8442e5bab6f700f5f011de56201f76b8461 (patch) | |
tree | 03a4a7a990697c748a9cea081cf13b2dcc693e72 /gdb/tui/tui-wingeneral.h | |
parent | fe3eaf1cd9af54cd4c678a8dde7fd0df601c9490 (diff) | |
download | gdb-1ce3e8442e5bab6f700f5f011de56201f76b8461.zip gdb-1ce3e8442e5bab6f700f5f011de56201f76b8461.tar.gz gdb-1ce3e8442e5bab6f700f5f011de56201f76b8461.tar.bz2 |
Introduce TUI window iterator
This introduces an iterator class and a range adapter to make it
simpler to iterate over TUI windows.
One explicit iteration remains, in tui-win.c, because that spot is
deleting windows as well.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.h (tui_refresh_all): Update.
* tui/tui-wingeneral.c (make_all_visible): Use foreach.
(tui_refresh_all): Remove "list" parameter. Use foreach.
* tui/tui-win.c (window_name_completer): Use foreach.
(tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
(update_tab_width): Likewise.
* tui/tui-layout.c (show_layout): Update.
* tui/tui-data.h (class tui_window_iterator): New.
(struct all_tui_windows): New.
* tui/tui-data.c (tui_partial_win_by_name): Use foreach.
Diffstat (limited to 'gdb/tui/tui-wingeneral.h')
-rw-r--r-- | gdb/tui/tui-wingeneral.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-wingeneral.h b/gdb/tui/tui-wingeneral.h index e925606..20b7f21 100644 --- a/gdb/tui/tui-wingeneral.h +++ b/gdb/tui/tui-wingeneral.h @@ -37,7 +37,7 @@ extern struct tui_win_info *tui_copy_win (struct tui_win_info *); extern void tui_box_win (struct tui_gen_win_info *, int); extern void tui_highlight_win (struct tui_win_info *); extern void tui_check_and_display_highlight_if_needed (struct tui_win_info *); -extern void tui_refresh_all (struct tui_win_info **); +extern void tui_refresh_all (); extern void tui_delete_win (WINDOW *window); #endif /* TUI_TUI_WINGENERAL_H */ |