Lines Matching refs:specs
756 struct spec **specs; in lookup_best_match() local
766 specs = calloc(n+1, sizeof(struct spec *)); in lookup_best_match()
767 if (!specs) in lookup_best_match()
769 specs[0] = lookup_common(rec, key, type, false); in lookup_best_match()
770 if (specs[0]) { in lookup_best_match()
771 if (!specs[0]->hasMetaChars) { in lookup_best_match()
773 lr = &specs[0]->lr; in lookup_best_match()
777 prefix_len = specs[0]->prefix_len; in lookup_best_match()
780 specs[i] = lookup_common(rec, aliases[i-1], type, false); in lookup_best_match()
781 if (specs[i]) { in lookup_best_match()
782 if (!specs[i]->hasMetaChars) { in lookup_best_match()
784 lr = &specs[i]->lr; in lookup_best_match()
787 if (specs[i]->prefix_len > prefix_len) { in lookup_best_match()
789 prefix_len = specs[i]->prefix_len; in lookup_best_match()
796 lr = &specs[best]->lr; in lookup_best_match()
802 free(specs); in lookup_best_match()