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 2/3] Don't include symtab.h from expression.h


On Fri, 22 Mar 2019 23:51:43 -0600
Tom Tromey <tom@tromey.com> wrote:

> expression.h includes symtab.h, but apparently only for the
> declaration of struct block.  This patch changes it to foward-declare
> the structure, and remove the include.
> 
> gdb/ChangeLog
> 2019-03-22  Tom Tromey  <tom@tromey.com>
> 
> 	* expression.h: Don't include symtab.h.
> 	(struct block): Forward declare.

Okay.

(I wasn't sure I liked this at first, but I see that a number of other header
files forward-declare struct block too.)

Kevin


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