Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
86887094
Commit
86887094
authored
May 17, 2004
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leakage of open streams
parent
02c37306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ansi-tests/read-byte.lsp
ansi-tests/read-byte.lsp
+8
-4
No files found.
ansi-tests/read-byte.lsp
View file @
86887094
...
...
@@ -51,8 +51,10 @@
unless (let ((s (open "foo.txt"
:direction :input
:element-type `(unsigned-byte ,i))))
(and (eql (setq b1 (read-byte s)) (1- (ash 1 i)))
(eql (setq b2 (read-byte s)) 1)))
(prog1
(and (eql (setq b1 (read-byte s)) (1- (ash 1 i)))
(eql (setq b2 (read-byte s)) 1))
(close s)))
collect (list i b1 b2))
nil)
...
...
@@ -70,8 +72,10 @@
unless (let ((s (open "foo.txt"
:direction :input
:element-type `(unsigned-byte ,i))))
(and (eql (setq b1 (read-byte s)) (1- (ash 1 i)))
(eql (setq b2 (read-byte s)) 1)))
(prog1
(and (eql (setq b1 (read-byte s)) (1- (ash 1 i)))
(eql (setq b2 (read-byte s)) 1))
(close s)))
collect (list i b1 b2))
nil)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment