This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/commit/Ada] Replace home-made string_vector struct with VEC


> 2007-02-05  Joel Brobecker  <brobecker@adacore.com>
> 
>         * ada-lang.c: #include "vec.h".
>         (struct string_vector, new_string_vector, string_vector_append):
>         Delete.
>         (char_ptr): New typedef.
>         (DEF_VEC_P (char_ptr)): New VEC type.
>         (symbol_completion_add): Update profile to take the new VEC type
>         instead of the old string_vector structure. Update code accordingly.
>         (ada_make_symbol_completion_list): Use the new VEC type instead of
>         the old string_vector structure, and update the code accordingly.
>         * Makefile.in (ada-lang.o): Add dependency on vec.h.

I just checked this one in.

> >   1. Would it make sense to have standard VECs predefined somewhere?
> >      For instance, I wonder how often a VEC of strings will be useful
> >      in GDB...
> 
> Sounds reasonable to me.

OK. Let's reserve the idea for now until we notice the same VECs
being used in several places...

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]