This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use VEC for filename_language_table
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 23 Jun 2016 23:40:19 -0400
- Subject: [binutils-gdb] Use VEC for filename_language_table
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 3fcf0b0d5a8cf04da4b4210121e7276ca1f20101 ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: 3fcf0b0d5a8cf04da4b4210121e7276ca1f20101
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.