Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal J. Bourguignon
asdf
Commits
a65d0e2f
Commit
a65d0e2f
authored
14 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
2.107: have ensure-source-registry accept a parameter (thanks, Xach)
parent
b011e629
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
asdf.lisp
+9
-5
9 additions, 5 deletions
asdf.lisp
with
9 additions
and
5 deletions
asdf.lisp
+
9
−
5
View file @
a65d0e2f
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
(
eval-when
(
:load-toplevel
:compile-toplevel
:execute
)
(
eval-when
(
:load-toplevel
:compile-toplevel
:execute
)
(
let*
((
asdf-version
;; the 1+ helps the version bumping script discriminate
(
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
))
(
existing-asdf
(
find-package
:asdf
))
(
vername
'
#:*asdf-version*
)
(
vername
'
#:*asdf-version*
)
(
versym
(
and
existing-asdf
(
versym
(
and
existing-asdf
...
@@ -3355,14 +3355,18 @@ with a different configuration, so the configuration would be re-read then."
...
@@ -3355,14 +3355,18 @@ with a different configuration, so the configuration would be re-read then."
(
defun
initialize-source-registry
(
&optional
parameter
)
(
defun
initialize-source-registry
(
&optional
parameter
)
(
setf
(
source-registry
)
(
compute-source-registry
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
;; or cleared. In the former case, return current configuration; in
;; the latter, initialize. ASDF will call this function at the start
;; the latter, initialize. ASDF will call this function at the start
;; of (asdf:find-system).
;; of (asdf:find-system) to make sure the source registry is initialized.
(
defun
ensure-source-registry
()
;; 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
)
(
if
(
source-registry-initialized-p
)
(
source-registry
)
(
source-registry
)
(
initialize-source-registry
)))
(
initialize-source-registry
parameter
)))
(
defun
sysdef-source-registry-search
(
system
)
(
defun
sysdef-source-registry-search
(
system
)
(
ensure-source-registry
)
(
ensure-source-registry
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment