Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf-dependency-grovel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
xcvb
asdf-dependency-grovel
Commits
76f199ad
Commit
76f199ad
authored
14 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
1.102: Use ASDF 2 as released.
Functionify a macro.
parent
68065400
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
grovel.lisp
+20
-17
20 additions, 17 deletions
grovel.lisp
package.lisp
+4
-4
4 additions, 4 deletions
package.lisp
with
24 additions
and
21 deletions
grovel.lisp
+
20
−
17
View file @
76f199ad
...
...
@@ -668,23 +668,26 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Constituent Support ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(
defmacro
with-constituent-groveling
(
&body
body
)
`
(
let
(
;; Set up tables for tracking variables and constants.
(
*suspected-variables*
(
make-hashset
:test
'eql
))
(
*suspected-constants*
(
make-hashset
:test
'eql
))
;; Initialize an fresh constituent environment.
(
*constituent-table*
(
make-hash-table
:test
#'
equal
))
(
*current-constituent*
(
make-instance
'top-constituent
))
;; Set up machinery for checking internal symbols.
(
*previous-package*
*package*
)
(
*previously-interned-symbols*
(
let
((
hashset
(
make-hashset
:test
'eql
)))
(
do-symbols
(
sym
*package*
)
(
hashset-add
sym
hashset
))
hashset
))
(
*check-internal-symbols-p*
t
)
;; Indicate that we are groveling.
(
*features*
(
adjoin
:groveling
*features*
)))
,@
body
))
`
(
call-with-constituent-groveling
(
lambda
()
,@
body
)))
(
defun
call-with-constituent-groveling
(
thunk
)
(
let
(
;; Set up tables for tracking variables and constants.
(
*suspected-variables*
(
make-hashset
:test
'eql
))
(
*suspected-constants*
(
make-hashset
:test
'eql
))
;; Initialize an fresh constituent environment.
(
*constituent-table*
(
make-hash-table
:test
#'
equal
))
(
*current-constituent*
(
make-instance
'top-constituent
))
;; Set up machinery for checking internal symbols.
(
*previous-package*
*package*
)
(
*previously-interned-symbols*
(
let
((
hashset
(
make-hashset
:test
'eql
)))
(
do-symbols
(
sym
*package*
)
(
hashset-add
sym
hashset
))
hashset
))
(
*check-internal-symbols-p*
t
)
;; Indicate that we are groveling.
(
*features*
(
adjoin
:groveling
*features*
)))
(
funcall
thunk
)))
(
defmacro
operating-on-asdf-component-constituent
((
component
)
&body
body
)
"Used internally; not exported."
...
...
This diff is collapsed.
Click to expand it.
package.lisp
+
4
−
4
View file @
76f199ad
...
...
@@ -3,7 +3,7 @@
(
cl:in-package
:asdf
)
(
defpackage
#:asdf-dependency-grovel
(
:use
#:cl
)
(
:use
#:cl
#:asdf
)
(
:export
#:reload
#:component-file
#:dependency-op
...
...
@@ -31,14 +31,14 @@
(
in-package
#:asdf-dependency-grovel
)
(
defparameter
*asdf-dependency-grovel-version*
"1.10
1
"
)
(
defparameter
*asdf-version-required-by-adg*
"
1.702
"
)
(
defparameter
*asdf-dependency-grovel-version*
"1.10
2
"
)
(
defparameter
*asdf-version-required-by-adg*
"
2.000
"
)
#-
asdf2
(
error
"ASDF-DEPENDENCY-GROVEL requires ASDF2."
)
#+
asdf2
(
unless
(
asdf:version-satisfies
(
asdf:asdf-version
)
*asdf-version-required-by-adg*
)
(
error
"
POIU
~A requires ASDF ~A or later."
(
error
"
ASDF-DEPENDENCY-GROVEL
~A requires ASDF ~A or later."
*asdf-dependency-grovel-version*
*asdf-version-required-by-adg*
))
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