Lines Matching refs:spec
65 sub lookup($spec, $repo, $base)
67 my $approx = $spec->lookup_stem($repo);
73 if ($spec->match($c, $base)) {
114 # $spec->match($library, $base)
184 sub no_match_dispatch($library, $spec, $base)
186 return $spec->no_match_shared($library, $base);
250 sub lookup_stem($spec, $repo)
252 my $result = $repo->{$spec->stem};
260 sub no_match_major($spec, $library)
262 return $spec->major != $library->major;
265 sub no_match_name($spec, $library, $base)
267 if (defined $spec->{dir}) {
268 if ("$base/$spec->{dir}" eq $library->{dir}) {
281 sub no_match_shared($spec, $library, $base)
283 if ($spec->no_match_major($library)) {
286 if ($spec->major == $library->major &&
287 $spec->minor > $library->minor) {
290 return $spec->no_match_name($library, $base);
294 sub no_match($spec, $library, $base)
296 return $library->no_match_dispatch($spec, $base);
299 sub match($spec, $library, $base)
301 return !$spec->no_match($library, $base);