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
Jan Moringen
asdf
Commits
e1732766
Commit
e1732766
authored
15 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Export one more utility.
Reorder functions to reduce SBCL style-warnings.
parent
c74f369b
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
+30
-29
30 additions, 29 deletions
asdf.lisp
with
30 additions
and
29 deletions
asdf.lisp
+
30
−
29
View file @
e1732766
...
...
@@ -62,6 +62,7 @@
#:appendf
#:asdf-message
#:coerce-name
#:directory-pathname-p
#:ends-with
#:ensure-directory-pathname
#:getenv
...
...
@@ -507,6 +508,21 @@ and NIL NAME, TYPE and VERSION components"
#+
ecl
(
si:getenv
x
))
(
defun
directory-pathname-p
(
pathname
)
"Does `pathname` represent a directory?
A directory-pathname is a pathname _without_ a filename. The three
ways that the filename components can be missing are for it to be `nil`,
`:unspecific` or the empty string.
Note that this does _not_ check to see that `pathname` points to an
actually-existing directory."
(
flet
((
check-one
(
x
)
(
not
(
null
(
member
x
'
(
nil
:unspecific
""
)
:test
'equal
)))))
(
and
(
check-one
(
pathname-name
pathname
))
(
check-one
(
pathname-type
pathname
)))))
(
defun
ensure-directory-pathname
(
pathspec
)
"Converts the non-wild pathname designator PATHSPEC to directory form."
(
cond
...
...
@@ -860,21 +876,6 @@ which evaluates to a pathname. For example:
#p\"/usr/share/common-lisp/systems/\"))
"
)
(
defun
directory-pathname-p
(
pathname
)
"Does `pathname` represent a directory?
A directory-pathname is a pathname _without_ a filename. The three
ways that the filename components can be missing are for it to be `nil`,
`:unspecific` or the empty string.
Note that this does _not_ check to see that `pathname` points to an
actually-existing directory."
(
flet
((
check-one
(
x
)
(
not
(
null
(
member
x
'
(
nil
:unspecific
""
)
:test
'equal
)))))
(
and
(
check-one
(
pathname-name
pathname
))
(
check-one
(
pathname-type
pathname
)))))
(
defun
sysdef-central-registry-search
(
system
)
(
let
((
name
(
coerce-name
system
))
(
to-remove
nil
)
...
...
@@ -2143,14 +2144,12 @@ with a different configuration, so the configuration would be re-read then."
(
setf
*output-translations*
'
())
(
values
))
(
defun
resolve-location
(
x
&optional
wildenp
)
(
if
(
atom
x
)
(
resolve-absolute-location-component
x
wildenp
)
(
loop
:with
path
=
(
resolve-absolute-location-component
(
car
x
)
nil
)
:for
(
component
.
morep
)
:on
(
cdr
x
)
:do
(
setf
path
(
resolve-relative-location-component
path
component
(
and
wildenp
(
not
morep
))))
:finally
(
return
path
))))
(
defparameter
*wild-path*
(
make-pathname
:directory
'
(
:relative
:wild-inferiors
)
:name
:wild
:type
:wild
:version
nil
))
(
defun
wilden
(
path
)
(
merge-pathnames
*wild-path*
path
))
(
defun
resolve-absolute-location-component
(
x
wildenp
)
(
let*
((
r
...
...
@@ -2187,12 +2186,14 @@ with a different configuration, so the configuration would be re-read then."
(
error
"pathname ~S is not relative to ~S"
s
super
))
(
merge-pathnames
s
super
)))
(
defparameter
*wild-path*
(
make-pathname
:directory
'
(
:relative
:wild-inferiors
)
:name
:wild
:type
:wild
:version
nil
))
(
defun
wilden
(
path
)
(
merge-pathnames
*wild-path*
path
))
(
defun
resolve-location
(
x
&optional
wildenp
)
(
if
(
atom
x
)
(
resolve-absolute-location-component
x
wildenp
)
(
loop
:with
path
=
(
resolve-absolute-location-component
(
car
x
)
nil
)
:for
(
component
.
morep
)
:on
(
cdr
x
)
:do
(
setf
path
(
resolve-relative-location-component
path
component
(
and
wildenp
(
not
morep
))))
:finally
(
return
path
))))
(
defun
location-designator-p
(
x
)
(
flet
((
componentp
(
c
)
(
typep
c
'
(
or
string
pathname
keyword
))))
...
...
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