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
b9070f45
Commit
b9070f45
authored
11 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Reinstate some GCL support.
parent
614279d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/script-support.lisp
+1
-1
1 addition, 1 deletion
test/script-support.lisp
uiop/filesystem.lisp
+9
-5
9 additions, 5 deletions
uiop/filesystem.lisp
uiop/lisp-build.lisp
+2
-2
2 additions, 2 deletions
uiop/lisp-build.lisp
with
12 additions
and
8 deletions
test/script-support.lisp
+
1
−
1
View file @
b9070f45
...
...
@@ -35,7 +35,7 @@ Some constraints:
(
declaim
(
optimize
(
speed
2
)
(
safety
#-
gcl
3
#+
gcl
0
)
#-
(
or
allegro
gcl
genera
)
(
debug
3
)
#+
(
or
cmu
scl
)
(
c::brevity
2
)))
(
proclaim
'
(
optimize
(
speed
2
)
(
safety
#-
gcl
3
#+
gcl
0
)
#-
(
or
allegro
gcl
genera
)
(
debug
3
)
(
proclaim
'
(
optimize
(
speed
#-
gcl
2
#+
gcl
0
)
(
safety
#-
gcl
3
#+
gcl
0
)
#-
(
or
allegro
gcl
genera
)
(
debug
3
)
#+
(
or
cmu
scl
)
(
c::brevity
2
)))
(
defvar
*trace-symbols*
...
...
This diff is collapsed.
Click to expand it.
uiop/filesystem.lisp
+
9
−
5
View file @
b9070f45
...
...
@@ -65,7 +65,8 @@ a CL pathname satisfying all the specified constraints as per ENSURE-PATHNAME"
(
defun
truename*
(
p
)
"Nicer variant of TRUENAME that plays well with NIL and avoids logical pathname contexts"
;; avoids both logical-pathname merging and physical resolution issues
(
and
p
(
handler-case
(
with-pathname-defaults
()
(
truename
p
))
(
file-error
()
nil
))))
(
and
p
(
handler-case
(
with-pathname-defaults
()
(
truename
p
))
(
#-
gcl
file-error
#+
gcl
error
()
nil
))))
(
defun
safe-file-write-date
(
pathname
)
"Safe variant of FILE-WRITE-DATE that may return NIL rather than raise an error."
...
...
@@ -107,7 +108,7 @@ or the original (parsed) pathname if it is false (the default)."
#+
sbcl
(
sb-unix:unix-stat
(
sb-ext:native-namestring
pp
))
#-
(
or
cmu
(
and
lispworks
unix
)
sbcl
scl
)
(
file-write-date
pp
)
p
))))
#+
clisp
#+
(
or
clisp
gcl
)
#.
(
flet
((
probe
(
probe
)
`
(
let
((
foundtrue
,
probe
))
(
cond
...
...
@@ -124,8 +125,11 @@ or the original (parsed) pathname if it is false (the default)."
`
(
if
truename
,
resolve
(
and
(
ignore-errors
(
,
fs
p
))
p
))
(
probe
resolve
)))))
(
file-error
()
nil
)))))))
(
probe
resolve
)))
#+
gcl
(
probe
'
(
or
(
probe-file
p
)
(
truename*
(
ensure-directory-pathname
p
))))))
(
#-
gcl
file-error
#+
gcl
error
()
nil
)))))))
(
defun
directory-exists-p
(
x
)
"Is X the name of a directory that exists on the filesystem?"
...
...
@@ -523,7 +527,7 @@ in an atomic way if the implementation allows."
(
defun
delete-file-if-exists
(
x
)
"Delete a file X if it already exists"
(
when
x
(
handler-case
(
delete-file
x
)
(
file-
error
()
nil
))))
(
when
x
(
handler-case
(
delete-file
x
)
(
#-
gcl
file-error
#+
gcl
error
()
nil
))))
(
defun
delete-empty-directory
(
directory-pathname
)
"Delete an empty directory"
...
...
This diff is collapsed.
Click to expand it.
uiop/lisp-build.lisp
+
2
−
2
View file @
b9070f45
...
...
@@ -591,7 +591,7 @@ possibly in a different process. Otherwise just call THUNK."
(
defun
compile-file-pathname*
(
input-file
&rest
keys
&key
output-file
&allow-other-keys
)
"Variant of COMPILE-FILE-PATHNAME that works well with COMPILE-FILE*"
(
let*
((
keys
(
remove-plist-keys
`
(
#+
(
and
allegro
(
not
(
version>=
8
2
)))
:external-format
(
remove-plist-keys
`
(
#+
(
or
(
and
allegro
(
not
(
version>=
8
2
)))
gcl
)
:external-format
,@
(
unless
output-file
'
(
:output-file
)))
keys
)))
(
if
(
absolute-pathname-p
output-file
)
;; what cfp should be doing, w/ mp* instead of mp
...
...
@@ -629,7 +629,7 @@ it will filter them appropriately."
'compile-file*
output-file
object-file
)
(
rotatef
output-file
object-file
))
(
let*
((
keywords
(
remove-plist-keys
`
(
:output-file
:compile-check
:warnings-file
`
(
:output-file
:compile-check
:warnings-file
#+
gcl
:external-format
#+
clisp
:lib-file
#+
(
or
ecl
mkcl
)
:object-file
)
keys
))
(
output-file
(
or
output-file
...
...
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