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
538c8ab2
Commit
538c8ab2
authored
33 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Declared the stream slots to be functions so that we don't have to mess around
doing type checks.
parent
0d403a63
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/struct.lisp
+12
-10
12 additions, 10 deletions
code/struct.lisp
with
12 additions
and
10 deletions
code/struct.lisp
+
12
−
10
View file @
538c8ab2
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; 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/struct.lisp,v 1.1
0
1991/0
3/04 16:51:30
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/struct.lisp,v 1.1
1
1991/0
5/21 21:25:15
ram Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -60,15 +60,17 @@
...
@@ -60,15 +60,17 @@
(
defconstant
in-buffer-length
100
"The size of a stream in-buffer."
)
(
defconstant
in-buffer-length
100
"The size of a stream in-buffer."
)
(
defstruct
(
stream
(
:predicate
streamp
)
(
:print-function
%print-stream
))
(
defstruct
(
stream
(
:predicate
streamp
)
(
:print-function
%print-stream
))
(
in-buffer
nil
)
; Buffered input
;;
(
in-index
in-buffer-length
:type
fixnum
)
; Index into in-buffer
;; Buffered input.
(
in
#'
ill-in
)
; Read-Char function
(
in-buffer
nil
:type
(
or
(
simple-array
*
(
*
))
null
))
(
bin
#'
ill-bin
)
; Byte input function
(
in-index
in-buffer-length
:type
index
)
; Index into in-buffer
(
n-bin
#'
ill-bin
)
; N-Byte input function
(
in
#'
ill-in
:type
function
)
; Read-Char function
(
out
#'
ill-out
)
; Write-Char function
(
bin
#'
ill-bin
:type
function
)
; Byte input function
(
bout
#'
ill-bout
)
; Byte output function
(
n-bin
#'
ill-bin
:type
function
)
; N-Byte input function
(
sout
#'
ill-out
)
; String output function
(
out
#'
ill-out
:type
function
)
; Write-Char function
(
misc
#'
do-nothing
))
; Less used methods
(
bout
#'
ill-bout
:type
function
)
; Byte output function
(
sout
#'
ill-out
:type
function
)
; String output function
(
misc
#'
do-nothing
:type
function
))
; Less used methods
;;;; Alien structures:
;;;; Alien structures:
...
...
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