This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/3] Use std::vector in type stacks
On 2019-01-05 15:41, Tom Tromey wrote: }
@@ -1480,13 +1491,16 @@ parameter_typelist:
nonempty_typelist
: type
{
- VEC (type_ptr) *typelist = NULL;
- VEC_safe_push (type_ptr, typelist, $1);
+ std::vector<struct type *> *typelist =
+ new std::vector<struct type *>;
The = should be on the next line.
@@ -3276,6 +3287,9 @@ c_parse (struct parser_state *par_state)
gdb_assert (par_state != NULL);
pstate = par_state;
+ c_parse_state cstate;
+ scoped_restore cstate_resotre = make_scoped_restore (&cpstate,
&cstate);
"resotre"
Otherwise, LGTM.
Simon