Lines Matching refs:specs
719 struct spec **specs; in lookup_best_match() local
729 specs = calloc(n+1, sizeof(struct spec *)); in lookup_best_match()
730 if (!specs) in lookup_best_match()
732 specs[0] = lookup_common(rec, key, type, false); in lookup_best_match()
733 if (specs[0]) { in lookup_best_match()
734 if (!specs[0]->hasMetaChars) { in lookup_best_match()
736 lr = &specs[0]->lr; in lookup_best_match()
740 prefix_len = specs[0]->prefix_len; in lookup_best_match()
743 specs[i] = lookup_common(rec, aliases[i-1], type, false); in lookup_best_match()
744 if (specs[i]) { in lookup_best_match()
745 if (!specs[i]->hasMetaChars) { in lookup_best_match()
747 lr = &specs[i]->lr; in lookup_best_match()
750 if (specs[i]->prefix_len > prefix_len) { in lookup_best_match()
752 prefix_len = specs[i]->prefix_len; in lookup_best_match()
759 lr = &specs[best]->lr; in lookup_best_match()
765 free(specs); in lookup_best_match()