Do not include parser-defs.h from c-lang.h
While working on another series, I noticed that c-lang.h does not need to include parser-defs.h. This patch makes this change, and fixes up the two .c files that needed this include. Tested by rebuilding. gdb/ChangeLog 2020-11-25 Tom Tromey <tom@tromey.com> * d-lang.c: Include parser-defs.h. * rust-lang.c: Include parser-defs.h. * c-lang.h: Do not include parser-defs.h.
This commit is contained in:
parent
21401fc7bf
commit
af30c400ea
4 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2020-11-25 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* d-lang.c: Include parser-defs.h.
|
||||
* rust-lang.c: Include parser-defs.h.
|
||||
* c-lang.h: Do not include parser-defs.h.
|
||||
|
||||
2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* regcache.h (struct cached_reg): Remove typedef.
|
||||
|
|
|
@ -28,7 +28,6 @@ struct parser_state;
|
|||
|
||||
#include "value.h"
|
||||
#include "macroexp.h"
|
||||
#include "parser-defs.h"
|
||||
#include "gdbsupport/enum-flags.h"
|
||||
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "demangle.h"
|
||||
#include "cp-support.h"
|
||||
#include "gdbarch.h"
|
||||
#include "parser-defs.h"
|
||||
|
||||
/* The name of the symbol to use to get the name of the main subprogram. */
|
||||
static const char D_MAIN[] = "D main";
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
#include "cli/cli-style.h"
|
||||
#include "parser-defs.h"
|
||||
|
||||
/* See rust-lang.h. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue