Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cl-tar-file
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
cl-tar
cl-tar-file
Commits
c36b473e
Unverified
Commit
c36b473e
authored
3 years ago
by
Eric Timmons
Browse files
Options
Downloads
Patches
Plain Diff
Remove check on STREAM-ELEMENT-TYPE
parent
9f370340
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
CHANGELOG.md
+6
-0
6 additions, 0 deletions
CHANGELOG.md
src/blocked-stream.lisp
+6
-10
6 additions, 10 deletions
src/blocked-stream.lisp
with
12 additions
and
10 deletions
CHANGELOG.md
+
6
−
0
View file @
c36b473e
## Unreleased
+
Remove check on stream element type. On at least SBCL and ECL,
`*standard-input*`
and
`*standard-output*`
have element type
`'character`
,
but also allow you to use binary stream functions on them.
## v0.1.3 - January 02, 2022
## v0.1.3 - January 02, 2022
+
Fix bug with determining type of entries in v7 archives.
+
Fix bug with determining type of entries in v7 archives.
...
...
This diff is collapsed.
Click to expand it.
src/blocked-stream.lisp
+
6
−
10
View file @
c36b473e
...
@@ -83,16 +83,12 @@ of the wrapped stream when instantiated."))
...
@@ -83,16 +83,12 @@ of the wrapped stream when instantiated."))
(
defmethod
initialize-instance
:after
((
blocked-stream
blocked-stream
)
(
defmethod
initialize-instance
:after
((
blocked-stream
blocked-stream
)
&key
&key
stream
)
stream
)
(
let
((
element-type
(
or
(
ignore-errors
(
stream-element-type
stream
))
;; Create the buffer.
'
(
unsigned-byte
8
))))
(
setf
(
buffer
blocked-stream
)
(
make-array
(
block-size
blocked-stream
)
(
assert
(
subtypep
element-type
'integer
)
:element-type
'
(
unsigned-byte
8
)
nil
"STREAM must be a binary stream"
)
:initial-element
0
)
;; Create the buffer.
;; Record the START-FILE-POSITION
(
setf
(
buffer
blocked-stream
)
(
make-array
(
block-size
blocked-stream
)
(
start-file-position
blocked-stream
)
(
ignore-errors
(
file-position
stream
))))
:element-type
element-type
:initial-element
0
)
;; Record the START-FILE-POSITION
(
start-file-position
blocked-stream
)
(
ignore-errors
(
file-position
stream
)))))
(
defgeneric
discard-buffer
(
stream
)
(
defgeneric
discard-buffer
(
stream
)
(
:documentation
(
:documentation
...
...
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