Use VEC for filename_language_table
authorTom Tromey <tom@tromey.com>
Thu, 26 May 2016 16:22:03 +0000 (10:22 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 24 Jun 2016 03:11:46 +0000 (21:11 -0600)
commit3fcf0b0d5a8cf04da4b4210121e7276ca1f20101
treea58d9bd6b43a767e9542a7eeaf430fc919283893
parent0c72ed4ca21e7a9f78f19179584f3886bf463689
Use VEC for filename_language_table

This patch changes filename_language_table to be a VEC.  This seemed
like a reasonable cleanup over the old code.

2016-06-23  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.
gdb/ChangeLog
gdb/symfile.c