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
cc1c7137
Commit
cc1c7137
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added :clear-input method. Changed base-character to character in
dispatching stuff.
parent
baceeeeb
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/fd-stream.lisp
+20
-8
20 additions, 8 deletions
code/fd-stream.lisp
with
20 additions
and
8 deletions
code/fd-stream.lisp
+
20
−
8
View file @
cc1c7137
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.
5
1990/0
8/24 18:10:52
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/fd-stream.lisp,v 1.
6
1990/0
9/06 19:40:38
wlott Exp $
;;;
;;; Streams for UNIX file descriptors.
;;;
...
...
@@ -239,9 +239,9 @@
(
def-output-routines
(
"OUTPUT-CHAR-~A-BUFFERED"
1
(
:none
base-
character
)
(
:line
base-
character
)
(
:full
base-
character
))
(
:none
character
)
(
:line
character
)
(
:full
character
))
(
if
(
eq
(
char-code
byte
)
(
char-code
#\Newline
))
(
setf
(
fd-stream-char-pos
stream
)
0
)
...
...
@@ -514,12 +514,12 @@
(
nconc
*input-routines*
(
list
(
list
',type
',name
',size
))))))
;;; INPUT-
BASE-
CHARACTER -- internal
;;; INPUT-CHARACTER -- internal
;;;
;;; Routine to use in stream-in slot for reading string chars.
;;;
(
def-input-routine
input-
base-
character
(
base-
character
1
sap
head
)
(
def-input-routine
input-character
(
character
1
sap
head
)
(
code-char
(
sap-ref-8
sap
head
)))
;;; INPUT-UNSIGNED-8BIT-BYTE -- internal
...
...
@@ -846,7 +846,19 @@
(
push
(
fd-stream-ibuf-sap
stream
)
*available-buffers*
)
(
setf
(
fd-stream-ibuf-sap
stream
)
nil
))
(
lisp::set-closed-flame
stream
))
(
:clear-input
)
(
:clear-input
(
setf
(
fd-stream-ibuf-head
stream
)
0
)
(
setf
(
fd-stream-ibuf-tail
stream
)
0
)
(
loop
(
multiple-value-bind
(
count
errno
)
(
mach:unix-select
(
1+
fd
)
(
ash
1
fd
)
0
0
0
)
(
cond
((
eql
count
1
)
(
do-input
stream
)
(
setf
(
fd-stream-ibuf-head
stream
)
0
)
(
setf
(
fd-stream-ibuf-tail
stream
)
0
))
(
t
(
return
))))))
(
:force-output
(
flush-output-buffer
stream
))
(
:finish-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