Skip to content

Commit

Permalink
rename {RESOLVER => DEFAULT}_MAX_SOLUTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Dec 3, 2024
1 parent 23a498c commit 31ebdc9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Resolve.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
RESOLVE_MAX_SOLUTIONS::Int = 8
DEFAULT_MAX_SOLUTIONS::Int = 8

# find the first `max` optimal solutions in lexicographical ordering
function resolve_core(
sat :: SAT{P},
reqs :: SetOrVec{P} = keys(sat.info);
max :: Integer = RESOLVE_MAX_SOLUTIONS,
max :: Integer = DEFAULT_MAX_SOLUTIONS,
by :: Function = identity, # ordering
) where {P}
# solution search data structures
Expand Down Expand Up @@ -139,7 +139,7 @@ end
function resolve(
sat :: SAT{P,V},
reqs :: SetOrVec{P} = keys(sat.info);
max :: Integer = RESOLVE_MAX_SOLUTIONS,
max :: Integer = DEFAULT_MAX_SOLUTIONS,
by :: Function = identity, # ordering
) where {P,V}
# generate solutions
Expand Down Expand Up @@ -174,7 +174,7 @@ end
function resolve(
deps :: DepsProvider{P},
reqs :: SetOrVec{P} = deps.packages;
max :: Integer = RESOLVE_MAX_SOLUTIONS,
max :: Integer = DEFAULT_MAX_SOLUTIONS,
by :: Function = identity, # package ordering
) where {P}
info = pkg_info(deps, reqs)
Expand All @@ -184,7 +184,7 @@ end
function resolve(
data :: AbstractDict{P,<:PkgData{P}},
reqs :: SetOrVec{P} = keys(data);
max :: Integer = RESOLVE_MAX_SOLUTIONS,
max :: Integer = DEFAULT_MAX_SOLUTIONS,
by :: Function = identity, # package ordering
) where {P}
info = pkg_info(data, reqs)
Expand All @@ -194,7 +194,7 @@ end
function resolve(
info :: Dict{P,PkgInfo{P,V}},
reqs :: SetOrVec{P} = keys(info);
max :: Integer = RESOLVE_MAX_SOLUTIONS,
max :: Integer = DEFAULT_MAX_SOLUTIONS,
by :: Function = identity, # package ordering
) where {P,V}
sat = SAT(info)
Expand Down

0 comments on commit 31ebdc9

Please sign in to comment.