- if(match_name(n))
- {
- /* TODO Do full parse and alias resolution here? Otherwise x86 and
- x86_64 are treated as equally good, even though the latter is more
- specific. */
- unsigned size = 1;
- for(char c: n)
- size += (c=='-');
-
- if(size>best_size)
+ {
+ unsigned quality;
+ if(match_name(n, &quality))
+ if(quality>best_quality)