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
5fe45891
Commit
5fe45891
authored
33 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Made the synonym stream methods safe so that we will get unbound errors even in
safe code.
parent
7a09e7e1
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
+5
-2
5 additions, 2 deletions
code/stream.lisp
with
5 additions
and
2 deletions
code/stream.lisp
+
5
−
2
View file @
5fe45891
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.1
0
1991/0
2/14 18:47:57
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.1
1
1991/0
4/23 12:58:28
ram Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.1
0
1991/0
2/14 18:47:57
ram Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/stream.lisp,v 1.1
1
1991/0
4/23 12:58:28
ram Exp $
;;;
;;;
;;; Stream functions for Spice Lisp.
;;; Stream functions for Spice Lisp.
;;; Written by Skef Wholey and Rob MacLachlan.
;;; Written by Skef Wholey and Rob MacLachlan.
...
@@ -496,6 +496,7 @@
...
@@ -496,6 +496,7 @@
;;;
;;;
(
macrolet
((
out-fun
(
name
slot
&rest
args
)
(
macrolet
((
out-fun
(
name
slot
&rest
args
)
`
(
defun
,
name
(
stream
,@
args
)
`
(
defun
,
name
(
stream
,@
args
)
(
declare
(
optimize
(
safety
1
)))
(
let
((
syn
(
symbol-value
(
synonym-stream-symbol
stream
))))
(
let
((
syn
(
symbol-value
(
synonym-stream-symbol
stream
))))
(
funcall
(
,
slot
syn
)
syn
,@
args
)))))
(
funcall
(
,
slot
syn
)
syn
,@
args
)))))
(
out-fun
synonym-out
stream-out
ch
)
(
out-fun
synonym-out
stream-out
ch
)
...
@@ -514,6 +515,7 @@
...
@@ -514,6 +515,7 @@
;;;
;;;
(
macrolet
((
in-fun
(
name
fun
&rest
args
)
(
macrolet
((
in-fun
(
name
fun
&rest
args
)
`
(
defun
,
name
(
stream
,@
args
)
`
(
defun
,
name
(
stream
,@
args
)
(
declare
(
optimize
(
safety
1
)))
(
let
((
*previous-stream*
stream
))
(
let
((
*previous-stream*
stream
))
(
,
fun
(
symbol-value
(
synonym-stream-symbol
stream
))
,@
args
)))))
(
,
fun
(
symbol-value
(
synonym-stream-symbol
stream
))
,@
args
)))))
(
in-fun
synonym-in
read-char
eof-errorp
eof-value
)
(
in-fun
synonym-in
read-char
eof-errorp
eof-value
)
...
@@ -527,6 +529,7 @@
...
@@ -527,6 +529,7 @@
;;; the in-buffer.
;;; the in-buffer.
;;;
;;;
(
defun
synonym-misc
(
stream
operation
&optional
arg1
arg2
)
(
defun
synonym-misc
(
stream
operation
&optional
arg1
arg2
)
(
declare
(
optimize
(
safety
1
)))
(
let
((
syn
(
symbol-value
(
synonym-stream-symbol
stream
)))
(
let
((
syn
(
symbol-value
(
synonym-stream-symbol
stream
)))
(
*previous-stream*
stream
))
(
*previous-stream*
stream
))
(
case
operation
(
case
operation
...
...
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