mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 01:07:34 +02:00
Stub for call-with-port
This commit is contained in:
parent
bebacfb985
commit
920f5dfd63
1 changed files with 9 additions and 0 deletions
|
@ -55,6 +55,11 @@
|
|||
current-output-port
|
||||
current-input-port
|
||||
current-error-port
|
||||
call-with-port
|
||||
; TODO: call-with-input-file
|
||||
; TODO: call-with-output-file
|
||||
; TODO: close-input-port
|
||||
; TODO: close-output-port
|
||||
error
|
||||
raise
|
||||
raise-continuable
|
||||
|
@ -84,6 +89,10 @@
|
|||
(after)
|
||||
result)))
|
||||
;(apply values results))))
|
||||
(define (call-with-port port proc)
|
||||
(let ((result (proc port)))
|
||||
(close-port port)
|
||||
result))
|
||||
(define (Cyc-bin-op cmp x lst)
|
||||
(cond
|
||||
((null? lst) #t)
|
||||
|
|
Loading…
Add table
Reference in a new issue