Remove remaining cleanups from c-exp.y
authorTom Tromey <tom@tromey.com>
Thu, 3 Jan 2019 02:22:44 +0000 (19:22 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 6 Jan 2019 16:39:34 +0000 (09:39 -0700)
commit9d30e1fd7cfc742b03b7d973e511f7bfe5cfc295
tree4de336eda1ecf3edf3648abd361b357d2fa65525
parentc65bac3846567a8068fe4aa5cfa79da5b193a1af
Remove remaining cleanups from c-exp.y

This removes the remaining cleanups from c-exp.y by moving some
globals into c_parse_state, and changing expansion_obstack to be an
auto_obstack.

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

* c-exp.y (struct c_parse_state) <macro_original_text,
expansion_obstack>: New member.
(macro_original_text, expansion_obstack): Remove globals.
(scan_macro_expansion, scanning_macro_expansion)
(finished_macro_expansion): Update.
(scan_macro_cleanup): Remove.
(yylex, c_parse): Update.
gdb/ChangeLog
gdb/c-exp.y