This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Make type-safe the 'content' field of struct tui_gen_win_info


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]