Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
alexandria
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
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
Christophe Junke
alexandria
Commits
2e9803cc
Commit
2e9803cc
authored
16 years ago
by
Attila Lendvai
Browse files
Options
Downloads
Patches
Plain Diff
fix force-output/finish-output thinko in io.lisp
parent
74b93468
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
io.lisp
+5
-5
5 additions, 5 deletions
io.lisp
with
5 additions
and
5 deletions
io.lisp
+
5
−
5
View file @
2e9803cc
...
...
@@ -61,18 +61,18 @@ possible values."
(
write-sequence
string
file-stream
)))
(
defun
copy-file
(
from
to
&key
(
if-to-exists
:supersede
)
(
element-type
'
(
unsigned-byte
8
))
f
orce
-output
)
(
element-type
'
(
unsigned-byte
8
))
f
inish
-output
)
(
with-input-from-file
(
input
from
:element-type
element-type
)
(
with-output-to-file
(
output
to
:element-type
element-type
:if-exists
if-to-exists
)
(
copy-stream
input
output
:element-type
element-type
:f
orce
-output
f
orce
-output
))))
:f
inish
-output
f
inish
-output
))))
(
defun
copy-stream
(
input
output
&key
(
element-type
(
stream-element-type
input
))
(
buffer-size
4096
)
(
buffer
(
make-array
buffer-size
:element-type
element-type
))
f
orce
-output
)
f
inish
-output
)
"Reads data from INPUT and writes it to OUTPUT. Both INPUT and OUTPUT must
be streams, they will be passed to READ-SEQUENCE and WRITE-SEQUENCE and must have
compatible element-types."
...
...
@@ -82,5 +82,5 @@ compatible element-types."
:do
(
write-sequence
buffer
output
)
:finally
(
progn
(
write-sequence
buffer
output
:end
bytes-read
)
(
when
f
orce
-output
(
f
orce
-output
output
)))))
(
when
f
inish
-output
(
f
inish
-output
output
)))))
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