This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Make type-safe the 'content' field of struct tui_gen_win_info
- From: Pedro Alves <palves at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>, gdb-patches at sourceware dot org
- Date: Mon, 27 Apr 2015 17:04:56 +0100
- Subject: Re: [PATCH] Make type-safe the 'content' field of struct tui_gen_win_info
- Authentication-results: sourceware.org; auth=none
- References: <1429880136-5830-1-git-send-email-patrick at parcs dot ath dot cx>
On 04/24/2015 01:55 PM, Patrick Palka wrote:
> The 'content' field of struct tui_gen_win_info currently has type
> void ** but the field always stores an object of type tui_win_content.
> Instead of unnecessarily casting to and from void ** we should just give
> the field the type tui_win_content in the first place.
>
> This patch does this and also eliminates all now-redundant casts
> involving the 'content' struct field that I could find.
>
OK.
Thanks,
Pedro Alves