Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
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
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
Carl Shapiro
cmucl
Commits
6e3410cf
Commit
6e3410cf
authored
22 years ago
by
toy
Browse files
Options
Downloads
Patches
Plain Diff
Remove the explicit test for stream element type of character. Was
preventing us from reading from string-streams, among other things.
parent
13c8109c
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
code/stream.lisp
+6
-2
6 additions, 2 deletions
code/stream.lisp
with
6 additions
and
2 deletions
code/stream.lisp
+
6
−
2
View file @
6e3410cf
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.
59
2003/03/1
7 10:36:42 emarsden
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.
60
2003/03/1
9 03:31:24 toy
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -2001,7 +2001,11 @@ POSITION: an INTEGER greater than or equal to zero, and less than or
(
declare
(
type
stream
stream
))
(
declare
(
type
index
start
end
))
(
let
((
stream-et
(
stream-element-type
stream
)))
(
cond
((
subtypep
(
stream-element-type
stream
)
'character
)
;; What is the purpose of this explicit test for characters? It
;; prevents reading a string-stream into a vector, like the
;; example in the CLHS.
(
cond
#+
nil
((
subtypep
(
stream-element-type
stream
)
'character
)
(
error
'type-error
:datum
(
read-byte
stream
nil
0
)
:expected-type
(
stream-element-type
stream
)
; Bogus?!?
...
...
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