Re: [RFA 2/3] Move filename extensions into language_defn

Tom Tromey
2016-06-06T21:04:51Z

>>>>> "Yao" == Yao Qi <qiyaoltc@gmail.com> writes:

Yao> Tom Tromey <tom@tromey.com> writes:
>> This moves filename extensions from a function in symfile.c out to
>> each language_defn. I think this is an improvement because it means
>> less digging around when writing a new language port.

Yao> Patch is good to me. Note that we can improve it further by moving
Yao> language related stuff out of symfile.c to language.c. Then, we can
Yao> remove filename_language_table in symfile.c, and use array languages in
Yao> language.c as a replacement.

I considered this, but users can add their own mappings. So, we would
still need both tables. It wouldn't result in a net code removal.

If you want, though, I can still do this.

Tom