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
5177698a
Commit
5177698a
authored
15 years ago
by
Robert P. Goldman
Browse files
Options
Downloads
Patches
Plain Diff
Renaming and docstring patch for SPLIT-PATH-STRING to
COMPONENT-NAME-TO-PATHNAME-COMPONENTS.
parent
5b93cb57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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 @
5177698a
...
...
@@ -76,7 +76,7 @@
#:remove-keyword
#:resolve-symlinks
#:split
#:
split-path-string
#:
component-name-to-pathname-components
#:system-registered-p
#:truenamize
))
...
...
@@ -463,7 +463,7 @@ and NIL NAME, TYPE and VERSION components"
(
unless
end
(
return
list
))
(
setf
start
(
1+
end
)))))))
(
defun
split-path-string
(
s
&optional
force-directory
)
(
defun
component-name-to-pathname-components
(
s
&optional
force-directory
)
"Splits the path string S, returning three values:
A flag that is either :absolute or :relative, indicating
how the rest of the values are to be interpreted.
...
...
@@ -474,7 +474,11 @@ A filename with type extension, possibly NIL in the
case of a directory pathname.
FORCE-DIRECTORY forces S to be interpreted as a directory
pathname \(third return value will be NIL, final component
of S will be treated as part of the directory path."
of S will be treated as part of the directory path.
The intention of this function is to support structured component names,
e.g., \(:file \"foo/bar\"\), which will be unpacked to relative
pathnames."
(
check-type
s
string
)
(
let*
((
components
(
split
s
nil
"/"
))
(
last-comp
(
car
(
last
components
))))
...
...
@@ -784,7 +788,7 @@ actually-existing directory."
(
defmethod
component-relative-pathname
((
component
module
))
(
or
(
slot-value
component
'relative-pathname
)
(
multiple-value-bind
(
relative
path
)
(
split-path-string
(
component-name
component
)
t
)
(
component-name-to-pathname-components
(
component-name
component
)
t
)
(
make-pathname
:directory
`
(
,
relative
,@
path
)
:host
(
pathname-host
(
component-parent-pathname
component
))))))
...
...
@@ -1043,7 +1047,7 @@ to `~a` which is not a directory.~@:>"
(
defun
merge-component-relative-pathname
(
pathname
name
type
)
(
multiple-value-bind
(
relative
path
filename
)
(
split-path-string
name
)
(
component-name-to-pathname-components
name
)
(
merge-pathnames
(
or
pathname
(
make-pathname
:directory
`
(
,
relative
,@
path
)))
(
if
type
...
...
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