Include parser-defs.h in cp-name-parser.y
authorTom Tromey <tom@tromey.com>
Tue, 29 May 2018 18:54:59 +0000 (12:54 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 1 Jun 2018 16:46:49 +0000 (10:46 -0600)
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.

gdb/ChangeLog
2018-06-01  Tom Tromey  <tom@tromey.com>

* cp-name-parser.y: Include parser-defs.h.
(parser_fprintf): Remove declaration.

gdb/ChangeLog
gdb/cp-name-parser.y

index 7bb56db52bf21dfa810ee52c77cf860c4caf8012..0c50d8385cb634cce41a5a28459c2ee87dbfda25 100644 (file)
@@ -1,3 +1,8 @@
+2018-06-01  Tom Tromey  <tom@tromey.com>
+
+       * cp-name-parser.y: Include parser-defs.h.
+       (parser_fprintf): Remove declaration.
+
 2018-06-01  Tom Tromey  <tom@tromey.com>
 
        * cp-name-parser.y: Use %pure-parser, %lex-param, and
index b66257513d69bba46de30b82455bbbb3d416c918..169a92df6a785f7f6908bc8e6f7c8001e2ca790d 100644 (file)
 #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"
This page took 0.02913 seconds and 4 git commands to generate.