This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 4/5] Include parser-defs.h in cp-name-parser.y
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Wed, 30 May 2018 08:29:52 -0600
- Subject: [RFA 4/5] Include parser-defs.h in cp-name-parser.y
- References: <20180530142953.24934-1-tom@tromey.com>
This changes cp-name-parser.y to include parser-defs.h, removing the
copy-pasted declaration of parser_fprintf. This can be done now that
cp-name-parser.y does not define any global variables.
2018-05-30 Tom Tromey <tom@tromey.com>
* cp-name-parser.y: Include parser-defs.h.
(parser_fprintf): Remove declaration.
---
gdb/ChangeLog | 5 +++++
gdb/cp-name-parser.y | 6 +-----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y
index b66257513d6..169a92df6a7 100644
--- a/gdb/cp-name-parser.y
+++ b/gdb/cp-name-parser.y
@@ -44,11 +44,7 @@
#include "demangle.h"
#include "cp-support.h"
#include "c-support.h"
-
-/* Function used to avoid direct calls to fprintf
- in the code generated by the bison parser. */
-
-extern void parser_fprintf (FILE *, const char *, ...) ATTRIBUTE_PRINTF (2, 3);
+#include "parser-defs.h"
#define GDB_YY_REMAP_PREFIX cpname
#include "yy-remap.h"
--
2.13.6