Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
asdf
asdf
Commits
a65d0e2f
Commit
a65d0e2f
authored
Jun 26, 2010
by
Francois-Rene Rideau
Browse files
2.107: have ensure-source-registry accept a parameter (thanks, Xach)
parent
b011e629
Changes
1
Hide whitespace changes
Inline
Side-by-side
asdf.lisp
View file @
a65d0e2f
...
...
@@ -70,7 +70,7 @@
(
eval-when
(
:load-toplevel
:compile-toplevel
:execute
)
(
let*
((
asdf-version
;; the 1+ helps the version bumping script discriminate
(
subseq
"VERSION:2.10
6
"
(
1+
(
length
"VERSION"
))))
(
subseq
"VERSION:2.10
7
"
(
1+
(
length
"VERSION"
))))
(
existing-asdf
(
find-package
:asdf
))
(
vername
'
#:*asdf-version*
)
(
versym
(
and
existing-asdf
...
...
@@ -3355,14 +3355,18 @@ with a different configuration, so the configuration would be re-read then."
(
defun
initialize-source-registry
(
&optional
parameter
)
(
setf
(
source-registry
)
(
compute-source-registry
parameter
)))
;;
c
hecks an initial variable to see whether the state is initialized
;;
C
hecks an initial variable to see whether the state is initialized
;; or cleared. In the former case, return current configuration; in
;; the latter, initialize. ASDF will call this function at the start
;; of (asdf:find-system).
(
defun
ensure-source-registry
()
;; of (asdf:find-system) to make sure the source registry is initialized.
;; However, it will do so *without* a parameter, at which point it
;; will be too late to provide a parameter to this function, though
;; you may override the configuration explicitly by calling
;; initialize-source-registry directly with your parameter.
(
defun
ensure-source-registry
(
&optional
parameter
)
(
if
(
source-registry-initialized-p
)
(
source-registry
)
(
initialize-source-registry
)))
(
initialize-source-registry
parameter
)))
(
defun
sysdef-source-registry-search
(
system
)
(
ensure-source-registry
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment