This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 1/3] Use VEC for filename_language_table
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 06 Jun 2016 14:06:01 +0100
- Subject: Re: [RFA 1/3] Use VEC for filename_language_table
- Authentication-results: sourceware.org; auth=none
- References: <1465051760-25840-1-git-send-email-tom at tromey dot com> <1465051760-25840-2-git-send-email-tom at tromey dot com>
Tom Tromey <tom@tromey.com> writes:
> 2016-06-04 Tom Tromey <tom@tromey.com>
>
> * symfile.c (filename_language_table): Now a VEC.
> (fl_table_size, fl_table_next): Remove.
> (add_filename_language): Use VEC_safe_push.
> (set_ext_lang_command, info_ext_lang_command)
> (deduce_language_from_filename): Use VEC_iterate.
> (init_filename_language_table): Use VEC_empty.
Looks good to me.
--
Yao (éå)