Skip to content

Commit a930ebc

Browse files
committed
Don't include symtab.h from expression.h
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-24 Tom Tromey <[email protected]> * expression.h: Don't include symtab.h. (struct block): Forward declare.
1 parent 582942f commit a930ebc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

gdb/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2019-03-24 Tom Tromey <[email protected]>
2+
3+
* expression.h: Don't include symtab.h.
4+
(struct block): Forward declare.
5+
16
2019-03-24 Tom Tromey <[email protected]>
27

38
* c-exp.y (typebase): Remove casts.

gdb/expression.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
#if !defined (EXPRESSION_H)
2121
#define EXPRESSION_H 1
2222

23-
24-
#include "symtab.h" /* Needed for "struct block" type. */
25-
2623
/* While parsing expressions we need to track the innermost lexical block
2724
that we encounter. In some situations we need to track the innermost
2825
block just for symbols, and in other situations we want to track the

0 commit comments

Comments
 (0)