Remove struct tui_point
authorTom Tromey <tom@tromey.com>
Sat, 26 Oct 2019 22:00:01 +0000 (16:00 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 11 Dec 2019 22:49:01 +0000 (15:49 -0700)
commitfb3184d8ee941e75d61b3d9ce8fcf7028c8877b8
treecce972bd6e7ad46dda877683a4b3619932bff290
parentdc7ff8a60818f002d7b759210202e0aaabfeebc3
Remove struct tui_point

struct tui_point does not help very much.  It is only used for
storage, and never passed between functions.  I think it makes the
code more verbose without any corresponding benefit, so this patch
removes it.

gdb/ChangeLog
2019-12-11  Tom Tromey  <tom@tromey.com>

* tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
* tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
* tui/tui-layout.c (tui_gen_win_info::resize): Update.
* tui/tui-data.h (struct tui_point): Remove.
(struct tui_gen_win_info) <origin>: Remove.
<x, y>: New fields.
* tui/tui-command.c (tui_cmd_window::resize): Update.

Change-Id: I3f77920585b9ea9e2b4b189f3f3ae32d4da0c252
gdb/ChangeLog
gdb/tui/tui-command.c
gdb/tui/tui-data.h
gdb/tui/tui-layout.c
gdb/tui/tui-win.c
gdb/tui/tui-wingeneral.c
This page took 0.025868 seconds and 4 git commands to generate.