Don't include symtab.h from expression.h
authorTom Tromey <tom@tromey.com>
Fri, 22 Mar 2019 22:06:36 +0000 (16:06 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 25 Mar 2019 05:32:09 +0000 (23:32 -0600)
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  <tom@tromey.com>

* expression.h: Don't include symtab.h.
(struct block): Forward declare.

gdb/ChangeLog
gdb/expression.h

index e4cef31e23fcb94352c9684e76422090d309e362..b831b283148bf9ff285e95b74a65fd74585deb4b 100644 (file)
@@ -1,3 +1,8 @@
+2019-03-24  Tom Tromey  <tom@tromey.com>
+
+       * expression.h: Don't include symtab.h.
+       (struct block): Forward declare.
+
 2019-03-24  Tom Tromey  <tom@tromey.com>
 
        * c-exp.y (typebase): Remove casts.
index 36f18be6af6ff43c827c23c2aee0695246e25a92..8db4b9d7e2639495804a09a428bdd6628e4a8d72 100644 (file)
@@ -20,9 +20,6 @@
 #if !defined (EXPRESSION_H)
 #define EXPRESSION_H 1
 
-
-#include "symtab.h"            /* Needed for "struct block" type.  */
-
 /* While parsing expressions we need to track the innermost lexical block
    that we encounter.  In some situations we need to track the innermost
    block just for symbols, and in other situations we want to track the
This page took 0.027923 seconds and 4 git commands to generate.