Use yy-remap.h in cp-name-parser.y
authorTom Tromey <tom@tromey.com>
Tue, 29 May 2018 18:20:09 +0000 (12:20 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 1 Jun 2018 16:46:48 +0000 (10:46 -0600)
commit55b6c9849624fc105539e08222fb8ff128a5f7e2
tree8644bf96598fd1b9da89528c2d4579ba06094567
parent3513a6bb20ef286e303367d4ef4963b5dab877cb
Use yy-remap.h in cp-name-parser.y

This changes cp-name-parser.y to use yy-remap.h, rather than its old
manual approach.

This required declaring parser_fprintf in cp-name-parser.y.
parser-defs.h can't be included here because parser-defs.h declares a
global "lexptr", which conflicts with the local one in
cp-name-parser.y.  This is only temporary, and will be cleaned up
later in the series.

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

* cp-name-parser.y (parser_fprintf): Declare.
(GDB_YY_REMAP_PREFIX): Define.
Include yy-remap.h.  Don't redefine yy* identifiers.
gdb/ChangeLog
gdb/cp-name-parser.y